Part Number Hot Search : 
2SC3296 DTC143X EL7301 4ALVC A1540 T345N 99603E3 SP491E
Product Description
Full Text Search
 

To Download PIC16F1613 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2014 microchip technology inc. ds40001737a_cn 1 ? pic12(l)f1612/16(l)f1613 ? pic12(l)f1612/16(l)f1613 ? 8 14 ?? ???????? ???? 10 adc ccp 24 smt ? ??????? crc ? wdt ????????? ? ?? ? ? c risc ? ? ?? 49 ? ? ?? -0-32mhz ? - ?? 125 ns ? ??? ? ? / y 16 ?? ? ??????? - ? 16 ??? file select register fsr -fsr ??? ? ?y power-on reset por ? ??? power-up timer pwrt ? ??? brown-out reset bor ? ??? windowed watchdog timer wwdt - ???? - ???? - ?? ? 2k ? ? 256 ?? sram ? ??????? ? ? ??? in-circuit serial programming? icsp? ? ???? low-voltage programming lvp ? ? -1.8v 3.6v pic12lf1612/16lf1613 -2.3v 5.5v pic12f1612/16f1613 ? ??? ? ? ??? ? ?? - ?? 1% ? - ???? 31 khz 32 mhz ? 31 khz ?? ? ?? -3 ?????? 32 mhz ? 4 ?? phase-locked loop pll s ? 11 i/o ? 1 ? - ???? - ?? - ????? ?? ???? ? timer0 8 ??? 8 ? / ? ? timer1 - ?? 16 ? / - ???? - ?? t1cki ? ? timer2/4/6 - 8 ?? 8 ? / -1:1 1:16 ?? -1:1 128:1 ?? - ??? - ? / ?? - ? ? ? / ? /pwm ? -16 ? / ? -10 pwm ? ??? signal measurement timer smt -24 ??? - 12 ?????? - 24 ? - ?? ? 16 crc - ??? - ??? - ??? ccpr ? 8/14/16 8 ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 2 ? ? 2014 microchip technology inc. ? complementary waveform generator cwg - ?? - ???? - ?? 1 4 ? - ? - ?? ?s ? ?? analog-to-digital converter adc -10 ? - 8 ? ? ?? - 1.024v 2.048v 4.096v ?? ? fixed voltage reference fvr - ?? 8 ?? dac ? - ??????? ? ? - ? - ?? - ?? ? ? pic12(l)f1612 -8 ? pdip soic dfn ? pic16(l)f1613 -14 ? pdip soic tssop -16 ? qfn 4x4x0.9 ?? ? ? in-circuit debug icd - ?? - ?? ? - ??? 1 pic12/16(l)f161x ? ? ? sram ?? i/o 8 /16 ? ? 10 adc ? ccp/10 pwm cwg clc smt/hlt ??? ??? crc ? ? eusart i 2 c?/spi (1) pic12(l)f1612 a 2048 256 6 1/1 1 4 1 2/0 1 0 2/3 0 0 0 0 i/h pic16(l)f1613 a 2048 256 12 1/1 2 8 1 2/0 1 0 2/3 0 0 0 0 i/h pic16(l)f1614 b 4096 512 12 1/3 2 8 1 2/2 1 2 2/3 1 1 1 1 i/h pic16(l)f1615 c 8192 1024 12 1/3 2 8 1 2/2 1 4 2/3 1 1 1 1 i/h pic16(l)f1618 b 4096 512 18 1/3 2 12 1 2/2 1 2 2/3 1 1 1 1 i/h pic16(l)f1619 c 8192 1024 18 1/3 2 12 1 2/2 1 4 2/3 1 1 1 1 i/h ? 1 ? (i) ?? (h) ? icd ?? e ?? ? a. ds40001737a_cn pic12(l)f1612/16(l)f1613 ?? 8/14 8 ?? b. pic16(l)f1614/8 ?? 14/20 8 ?? c. pic16(l)f1615/9 ?? 14/20 8 ?? ? ?????? http://www.microchip.com/packaging ????
? 2014 microchip technology inc. ds40001737a_cn 3 ? pic12(l)f1612/16(l)f1613 ? ? 8 pdip soic dfn udfn ? 14 pdip soic tssop ? 16 qfn 1 2 3 4 8 7 6 5 v dd ra5 ra3 v ss ra0 ra1 ra2 ? ?? 2 ra4 pic12f1612 pic12lf1612 PIC16F1613 1 2 3 4 14 13 12 11 5 6 7 10 9 8 v dd ra5 ra4 ra3 rc5 rc4 v ss ra0 ra1 ra2 rc0 rc1 rc2 rc3 ? ?? 3 pic16lf1613 PIC16F1613 pic16lf1613 ra0 ra1 ra2 rc0 9 10 11 12 5 6 rc4 rc3 rc1 rc2 7 8 2 3 1 4 ra5 ra4 ra3/mclr /v pp rc5 15 16 13 14 nc v dd nc v ss ? 1 ?? 3 2 qfn ?q?? v ss
pic12(l)f1612/16(l)f1613 ds40001737a_cn 4 ? ? 2014 microchip technology inc. ? 2 pic12(l)f1612 8 ? i/o 8 pdip/soic/dfn adc ? ? ? ccp cwg zcd smt ra0 7 an0 dac1out1 c1in+ ? ccp2 cwg1b ? ioc ? icspdat ra1 6 an1 v ref + c1in0- ? ? ? zcd1out ioc ? icspclk ra2 5 an2 ? c1out t0cki t4in ccp1 (1) cwg1a (1) cwg1in zcd1in int ioc smtsig2 ? ra3 4 ? ? ? t1g (1) t6in ? ? ? ioc smtwin2 mclr v pp ra4 3 an3 ? c1in1- t1g ? cwg1b ? ioc smtsig1 clkout ra5 2 ? ? ? t1cki t2in ccp1 cwg1a ? ioc smtwin1 clkin v dd 1 ? ? ? ? ? ? ? ? ? ? v dd vss 8 ? ? ? ? ? ? ? ? ? ? v ss ? 1 ? apfcon ? ? 12-1 ???? 3 pic16(l)f1613 14 ? 16 ? i/o 14 pdip/soic/tssop 16 qfn adc ? ? ? ccp cwg zcd smt ra0 13 12 an0 dac1out1 c1in+ ? ? ? ? ioc ? icspdat ra1 12 11 an1 v ref + c1in0- c2in0- ? ? ? zcd1out ioc ? icspclk ra2 11 10 an2 ? c1out t0cki ? cwg1in zcd1in int ioc ? ? ra3 4 3 ? ? ? t1g (1) t6in ? ? ? ioc smtwin2 mclr v pp ra4 3 2 an3 ? ? t1g ? ? ? ioc smtsig1 clkout ra5 2 1 ? ? ? t1cki t2in ccp2 (1) ? ? ioc smtwin1 clkin rc0 10 9 an4 ? c2in+ ? ? ? ? ioc ? ? rc1 9 8 an5 ? c1in1- c2in1- t4in ? ? ? ioc smtsig2 ? rc2 8 7 an6 ? c1in2- c2in2- ? ? cwg1d ? ioc ? ? rc3 7 6 an7 ? c1in3- c2in3- ? ccp2 cwg1c ? ioc ? ? rc4 6 5 ? ? c2out ? ? cwg1b ? ioc ? ? rc5 5 4 ? ? ? ? ccp1 cwg1a ? ioc ? ? v dd 1 16 ? ? ? ? ? ? ? ? ? ? v dd v ss 14 13 ? ? ? ? ? ? ? ? ??v ss ? 1 ? apfcon ? ? 12-1 ????
? 2014 microchip technology inc. ds40001737a_cn 5 ? pic12(l)f1612/16(l)f1613 ?? 1.0 ............................................................................................................................... ........................................................... 7 2.0 ? cpu............................................................................................................................ ................................................. 13 3.0 ............................................................................................................................... ..................................................... 15 4.0 ............................................................................................................................... ......................................................... 47 5.0 ? ............................................................................................................................... ..................................................... 54 6.0 ............................................................................................................................... ................................................................ 65 7.0 ............................................................................................................................... ................................................................ 73 8.0 ?? ? ............................................................................................................................... .......................................... 88 9.0 ??? wdt ............................................................................................................................... ........................... 91 10.0 ............................................................................................................................... ..................................... 99 11.0 ? crc ? .............................................................................................................................. ....................... 115 12.0 i/o ? ............................................................................................................................... ...................................................... 127 13.0 ? ............................................................................................................................... ............................................. 141 14.0 ?? fvr ............................................................................................................................... ............................... 146 15.0 ???? ............................................................................................................................... .......................................... 149 16.0 ?? adc ? ............................................................................................................................... .......................... 151 17.0 8 ?? dac1 ? ............................................................................................................................... .................. 165 18.0 ?? ............................................................................................................................... ................................................. 169 19.0 zcd ? ............................................................................................................................... .............................. 177 20.0 timer0 ? ............................................................................................................................... ................................................ 181 21.0 ??? timer1 ? ............................................................................................................................... ......................... 184 22.0 timer2/4/6 ? ............................................................................................................................... .......................................... 195 23.0 ? / ? /pwm ? ............................................................................................................................... ............................... 214 24.0 cwg ? ............................................................................................................................... .................. 228 25.0 ??? smtx ............................................................................................................................... ......................... 255 26.0 ? icsp? ............................................................................................................................... ......................... 299 27.0 ?? ............................................................................................................................... ................................................. 301 28.0 Z ............................................................................................................................... ..................................................... 315 29.0 ??? ............................................................................................................................... ................................... 339 30.0 ? ............................................................................................................................... ..................................................... 357 31.0 ?? ............................................................................................................................... ..................................................... 361 ? a ? ............................................................................................................................... ........................................ 380 microchip ? ............................................................................................................................... .................................................... 381 ??? ............................................................................................................................... .............................................. 381 ?? ............................................................................................................................... ............................................................. 381 ??? ............................................................................................................................... ..................................................... 382
pic12(l)f1612/16(l)f1613 ds40001737a_cn 6 ? ? 2014 microchip technology inc. ?????? microchip ?????????? ??? ??????? trc ???? ctrc@microchip.com ? ? ????? http://www.microchip.com ????????????? ds300000000a_cn ? a ???????????????? / ???????????? ??????????? ?microchip ? http://www.microchip.com ? microchip ? ?? ????????? ?? ????? ?? microchip ?????? http://www.microchip.com ??
? 2014 microchip technology inc. ds40001737a_cn 7 ? pic12(l)f1612/16(l)f1613 1.0 ? pic12(l)f1612/16(l)f1613 ?? ? 1-1 ?? 1-1 ? ? 1-2 1-3 ? 1-1 pic12(l)f1612 pic16(l)f1613 ?? adc ?? cwg ?? ? cyclic redundancy check crc ?? ?? digital-to-analog converter dac ?? ?? fvr ?? ??? ?? ??? watchdog timer wdt ?? zero cross detection zcd ?? ? / ? /pwm capture/compare/pwm ccp ? ccp1 ?? ccp2 ?? ? c1 ?? c2 ? ??? smt smt1 ?? smt2 ?? ? timer0 ?? timer1 ?? timer2 ?? timer4 ?? timer6 ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 8 ? ? 2014 microchip technology inc. ? 1-1 pic12(l)f1612/16(l)f1613 ? rev. 10-000039f 12/19/2013 clkout clkin ram cpu ?"? 3 ? c * intrc 95 < mclr k?, /?c,| < fvr 10 ! adc #yz ?/ < tmr0 tmr1 tmr2 ccp1 ccp2 zcd1 cwg1 porta dac c1 crc tmr4 tmr6 c2 smt2 smt1 portc (4) (4) ? 1 ???? 2 ??k 1-1 3 ? 2-1 4 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 9 ? pic12(l)f1612/16(l)f1613 1-2 pic12(l)f1612 ? ? ra0/an0/c1in+/dac1out1/ ccp2/cwg1b (1) / icspdat ra0 ttl/st cmos/od ? i/o an0 an ? adc ?? c1in+ an ? ?? dac1out1 ? an ?? ccp2 ttl/st ? ? / ? /pwm2 cwg1b ttl/st ? cwg b icspdat st cmos icsp? i/o ra1/an1/v ref +/c1in0-/ zcd1out/icspclk ra1 ttl/st cmos/od ? i/o an1 an ? adc ?? v ref +an ? ?? c1in0- an ? ??? zcd1out ? cmos icspclk st ? icsp ?? ra2/an2/c1out/t0cki/t4in/ ccp1 (1) /cwg1a (1) / cwg1in/zcd1in/int/smtsig2 ra2 ttl/st cmos/od ? i/o an2 an ? adc ?? c1out ? cmos/od ? t0cki ttl/st ? timer0 ?? t4in ttl/st ? timer4 ? ccp1 ttl/st cmos/od ? / ? /pwm1 cwg1a ?? cwg a cwg1in ttl/st ? cwg ? zcd1in an ? ? int ttl/st ? ?? smtsig2 ttl/st ? smt2 ?? ra3/v pp /t1g (1) /t6in/ smtwin2/mclr ra3 ttl/st ? ioc wpu ?? v pp hv ? ?? t1g ttl/st ? timer1 ?? t6in ttl/st ? timer6 ? smtwin2 ttl/st ? smt2 ? mclr ttl/st ? ? ra4/an3/c1in1-/t1g (1) / cwg1b (1) /smtsig1/ clkout ra4 ttl/st cmos/od ? i/o an3 an ? adc ?? c1in1- an ? ??? t1g ttl/st ? timer1 ?? cwg1b ? cmos/od cwg a smtsig1 ttl/st ? smt1 ?? clkout ? cmos f osc /4 ?? an = ? cmos = cmos od = ? ttl = ttl st = cmos ??? i 2 c? = i 2 c? ??? hv = ?? xtal = ? 1 ? apfcon ? ? 12-1 ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 10 ? ? 2014 microchip technology inc. ra5/clkin/t1cki/t2in/ ccp1 (1) /cwg1a (1) / smtwin1 ra5 ttl/st cmos/od ? i/o clkin cmos ? ?? ec ?? t1cki ttl/st ? timer1 ?? t2in ttl/st ? timer2 ? ccp1 ttl/st cmos/od ? / ? /pwm1 cwg1a ? cmos/od cwg a smtwin1 ttl/st ? smt1 ? v dd v dd ? ? ? v ss v ss ? ? ? 1-2 pic12(l)f1612 ? ? ?? an = ? cmos = cmos od = ? ttl = ttl st = cmos ??? i 2 c? = i 2 c? ??? hv = ?? xtal = ? 1 ? apfcon ? ? 12-1 ????
? 2014 microchip technology inc. ds40001737a_cn 11 ? pic12(l)f1612/16(l)f1613 1-3 pic16(l)f1613 ? ? ra0/an0/c1in+/dac1out1/ icspdat ra0 ttl/st cmos/od ? i/o an0 an ? adc ?? c1in+ an ? ?? dac1out1 ? an ?? icspdat st cmos icsp? i/o ra1/an1/v ref +/c1in0-/c2in0-/ zcd1out/icspclk ra1 ttl/st cmos/od ? i/o an1 an ? adc ?? v ref +an ? ?? c1in0- an ? ??? c2in0- an cmos/od ??? zcd1out ? ? icspclk st icsp ?? ra2/an2/c1out/t0cki/ cwg1in/zcd1in/int ra2 ttl/st cmos/od ? i/o an2 an ? adc ?? c1out ? cmos/od ? t0cki ttl/st ? timer0 ?? cwg1in ttl/st ? cwg ? zcd1in an ? ? int ttl/st ? ?? ra3/v pp /t1g (1) /t6in/ smtwin2/mclr ra3 ttl/st ? ioc wpu ?? v pp hv ? ?? t1g ttl/st ? timer1 ?? t6in ttl/st ? timer6 ? smtwin2 ttl/st ? smt2 ? mclr ttl/st ? ? ra4/an3/t1g (1) /smtsig1/ clkout ra4 ttl/st cmos/od ? i/o an3 an ? adc ?? t1g ttl/st ? timer1 ?? smtsig1 ttl/st ? smt1 ?? clkout ? cmos f osc /4 ra5/clkin/t1cki/t2in/ ccp2 (1) /smtwin1 ra5 ttl/st cmos/od ? i/o clkin cmos ? ?? ec ?? t1cki ttl/st ? timer1 ?? t2in ttl/st ? timer2 ? ccp2 ttl/st cmos/od ? / ? /pwm2 smtwin1 ttl/st ? smt1 ? rc0/an4/c2in+ rc0 ttl/st cmos/od ? i/o an4 an ? adc ?? c2in+ an ? ?? ?? an = ? cmos = cmos od = ? ttl = ttl st = cmos ??? i 2 c? = i 2 c? ??? hv = ?? xtal = ? 1 ? apfcon ? ? 12-1 ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 12 ? ? 2014 microchip technology inc. rc1/an5/c1in1-/c2in1-/t4in/ smtsig2 rc1 ttl/st cmos/od ? i/o an5 an ? adc ?? c1in1- an ? ??? c2in1- an ? ??? t4in ttl/st ? timer4 ? smtsig2 ttl/st ? smt2 ?? rc2/an6/c1in2-/c2in2-/ cwg1d rc2 ttl/st cmos/od ? i/o an6 an ? adc ?? c1in2- an ? ??? c2in2- an ? ??? cwg1d ? cmos/od cwg d rc3/an7/c1in3-/c2in3-/ ccp2 (1) /cwg1c rc3 ttl/st ? ioc wpu ?? an7 an ? adc ?? c1in3- an ? ??? c2in3- an ? ??? ccp2 ttl/st cmos/od ? / ? /pwm2 cwg1c ? cmos/od cwg c rc4/c2out/cwg1b rc4 ttl/st cmos/od ? i/o c2out ? cmos/od ? cwg1b ? cmos/od cwg b rc5/ccp1/cwg1a rc5 ttl/st cmos/od ? i/o ccp1 ttl/st cmos/od ? / ? /pwm1 cwg1a ? cmos/od cwg a v dd v dd ? ? ? v ss v ss ? ? ? 1-3 pic16(l)f1613 ? ? ?? an = ? cmos = cmos od = ? ttl = ttl st = cmos ??? i 2 c? = i 2 c? ??? hv = ?? xtal = ? 1 ? apfcon ? ? 12-1 ????
? 2014 microchip technology inc. ds40001737a_cn 13 ? pic12(l)f1612/16(l)f1613 2.0 ? cpu ?? 8 cpu ?? cpu 49 ??????? ?? 16 ?y?? ??????????? ??? fsr ?? ? ?? ? 16 ? ? ??? ? ?? ? 2-1 ??? 15 15 15 15 8 8 8 12 14 7 5 3 /?caud < mux   mux 16 4{  ? 15 !? /?c,| < a?? pmr ? ???, < fsr0 ?, < fsr1 ?, < bsr ?, < status ?, < ram w ?, < t+  n < t+ ! ,?k?(? n < ? _! ??a-?
`{
c * yf? 95 < ? + alu k?, /?c ,| < mux db4? /?c4? ,y   ky   ram   clkin clkout v dd v ss rev. 10-000055a 7/30/2013 12 12 g!5b
pic12(l)f1612/16(l)f1613 ds40001737a_cn 14 ? ? 2014 microchip technology inc. 2.1 ?? ???????? ?????? ????? 7.5 ? ? 2.2 16 ? 15 ? 16 ??? ?? pcon ?? stkovf stkunf 1 ??? ?? 3.4 ? 2.3 ??? 16 ??? fsr fsr ? ??????? ??? fsr ??? indf ????????? ??????? 80 ?? ???? fsr ? ?? 3.5 ?? 2.4 ?? ? cpu 49 ??? cpu ??? 27.0 ???
? 2014 microchip technology inc. ds40001737a_cn 15 ? pic12(l)f1612/16(l)f1613 3.0 ?? ? - - id - ? id - ? ? - ??? - ??? - ? ram - ram ???? ? pcl pclath ? ? ? ?? 3.1 ???? 15 ??? 32k x 14 ??? 3-1 ??? ?????? ????? 0000h ? 0004h ? 3-1 3-1 ?? ? ? ?? pic12(l)f1612/16(l)f1613 2,048 07ffh
pic12(l)f1612/16(l)f1613 ds40001737a_cn 16 ? ? 2014 microchip technology inc. ? 3-1 pic12(l)f1612/16(l)f1613 ???? 3.1.1 ??? ????? ? retlw ????? fsr ? ?? 3.1.1.1 retlw ? retlw ?????? 3-1 ? 3-1 retlw ? ? brw ????????? ?????? brw ?? ????? #?z 0 #?z 15 #?z 1 ! ?g pc<14:0> ? ?g page 0 au$e 2 page 0 au$e 2 page 0 0000h 0004h 0005h 07ffh 0800h 7fffh call, callw return, retlw ? retfie (t/?c ,| < 15 rev. 10-000040c 7/30/2013 constants brw ;add index in w to ;program counter to ;select data retlw data0 ;index0 data retlw data1 ;index1 data retlw data2 retlw data3 my_function ;? lots of code? movlw data_index call constants ;? the constant is in w
? 2014 microchip technology inc. ds40001737a_cn 17 ? pic12(l)f1612/16(l)f1613 3.1.1.2 ? fsr ?? ? fsrxh ? bit 7 1 ?? indfx ????? moviw ?????? 8 w ?? ? indf ?? ? fsr ?????? 3-2 ? fsr ??? ???? high ? bit<7> 1 3-2 ? fsr ? constants retlw data0 ;index0 data retlw data1 ;index1 data retlw data2 retlw data3 my_function ;? lots of code? movlw low constants movwf fsr1l movlw high constants movwf fsr1h moviw 0[fsr1] ;the program memory is in w
pic12(l)f1612/16(l)f1613 ds40001737a_cn 18 ? ? 2014 microchip technology inc. 3.2 ? ?? 32 ? 128 ?? ? 3-2 ? 12 ??? ? 20 ??? special function register sfr ? 80 ??? ram general purpose ram gpr ? 16 ??? ram ???? bank select register bsr ? ???? 0 ??? ???????? ??? fsr ??? 3.5 ?? ??? 12 ??? 5 ? ? 7 ???? /ram 3.2.1 ??? ????????? ???? 12 ? ? x00h/x08h x0bh/x8bh 3-2 ???? 3-9 3-2 ??? ? bankx x00h x80h indf0 x01h x81h indf1 x02h x82h pcl x03h x83h status x04h x84h fsr0l x05h x85h fsr0h x06h x86h fsr1l x07h x87h fsr1h x08h x88h bsr x09h x89h wreg x0ah x8ah pclath x0bh x8bh intcon
? 2014 microchip technology inc. ds40001737a_cn 19 ? pic12(l)f1612/16(l)f1613 3.2.1.1 ??? status ?? 3-1 ? ? alu ?? ? ?? ?? status ??? ???? z dc c ? status ????? ?? 1 ? ? to pd ????? status ?????? ???? clrf status 3 z 1 ?? status ??? 000u u1uu u = ? ?? bcf bsf swapf movwf ? ? status ?????? ??????? 27.0 ? ?? ? ? 1 ? c dc ?? ? ? 3-1 status ??? u-0 u-0 u-0 r-1/q r-1/q r/w-0/u r/w-0/u r/w-0/u ? ? ? to pd zd c (1) c (1) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-5 ??? 0 bit 4 to ? 1 = ?? clrwdt ? sleep ? 0 = wdt ? bit 3 pd 1 = ?? clrwdt ? 0 = ? sleep ? bit 2 z ?? 1 = ??? 0 = ??? bit 1 dc / addwf addlw sublw subwf ?? (1) 1 = ? 4 ? 0 = ? 4 ?? bit 0 c / addwf addlw sublw subwf ?? (1) 1 = ? 0 = ?? ? 1 ? ?????????? rrf rlf ?????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 20 ? ? 2014 microchip technology inc. 3.2.2 ??? ????? ?????? ??? ???? 20 ? ? x0ch/x8ch x1fh/x9fh ??? ??? 3.2.3 ? ram ?? 80 ?? gpr ? ram ??????? 80 ? ? x20h/xa0h x6fh/xefh 3.2.3.1 ? gpr ? ram ? fsr ???? ??????? 3.5.2 ? ? ? 3.2.4 ram 16 ??? ram ???? 3.2.5 ? 3-5 3-8 pic12(l)f1612/16(l)f1613 ?? ? 3-2 ,| <  3 7!,| #/? 00h 0bh 0ch 1fh 20h 6fh 7fh 70h y ?, < ?123?? + y? ?7i  ?kv203?? yram  kv803? @eram ?16+8v? rev. 10-000041a 7/30/2013
? 2014 microchip technology inc. ds40001737a_cn 21 ? pic12(l)f1612/16(l)f1613 3-3 pic12(l)f1612 ?? bank 0-7 bank 0 bank 1 bank 2 bank 3 bank 4 bank 5 bank 6 bank 7 000h ??? 3-2 080h ??? 3-2 100h ??? 3-2 180h ??? 3-2 200h ??? 3-2 280h ??? 3-2 300h ??? 3-2 380h ??? 3-2 00bh08bh10bh18bh20bh28bh30bh38bh 00ch porta 08ch trisa 10ch lata 18ch ansela 20ch wpua 28ch odcona 30ch slrcona 38ch inlvla 00dh ? 08dh ? 10dh ? 18dh ? 20dh ?28dh ?30dh ?38dh ? 00eh ?08eh ?10eh ?18eh ?20eh ?28eh ?30eh ?38eh ? 00fh ?08fh ?10fh ?18fh ?20fh ? 28fh ? 30fh ? 38fh ? 010h ? 090h ? 110h ? 190h ? 210h ? 290h ? 310h ? 390h ? 011h pir1 091h pie1 111h cm1con0 191h pmadrl 211h ? 291h ccp1rl 311h ? 391h iocap 012h pir2 092h pie2 112h cm1con1 192h pmadrh 212h ? 292h ccp1rh 312h ? 392h iocan 013h pir3 093h pie3 113h ? 193h pmdatl 213h ? 293h ccp1con 313h ? 393h iocaf 014h pir4 094h pie4 114h ? 194h pmdath 214h ? 294h ccp1cap 314h ? 394h ? 015h tmr0 095h option_reg 115h cmout 195h pmcon1 215h ? 295h ? 315h ? 395h ? 016h tmr1l 096h pcon 116h borcon 196h pmcon2 216h ? 296h ? 316h ? 396h ? 017h tmr1h 097h ? 117h fvrcon 197h vregcon 217h ? 297h ? 317h ? 397h ? 018h t1con 098h osctune 118h dac1con0 198h ? 218h ? 298h ccp2rl 318h ? 398h ? 019h t1gcon 099h osccon 119h dac1con1 199h ? 219h ? 299h ccp2rh 319h ? 399h ? 01ah tmr2 09ah oscstat 11ah ?19ah ? 21ah ?29ah ccp2con 31ah ?39ah ? 01bh pr2 09bh adresl 11bh ?19bh ? 21bh ?29bh ccp2cap 31bh ? 39bh ? 01ch t2con 09ch adresh 11ch zcd1con 19ch ? 21ch ?29ch ?31ch ? 39ch ? 01dh t2hlt 09dh adcon0 11dh apfcon 19dh ? 21dh ? 29dh ? 31dh ? 39dh ? 01eh t2clkcon 09eh adcon1 11eh ? 19eh ? 21eh ? 29eh ccptmrs 31eh ? 39eh ? 01fh t2rst 09fh adcon2 11fh ?19fh ? 21fh ? 29fh ? 31fh ? 39fh ? 020h ?? 80 ? 0a0h ?? 80 ? 120h ?? 80 ? 1a0h ? ? 0 220h ? ? 0 2a0h ? ? 0 320h ? ? 0 3a0h ? ? 0 0efh 06fh 16fh 1efh 26fh 2efh 36fh 3efh 070h ram 0f0h ram ? 70h ? 7fh 170h ram ? 70h ? 7fh 1f0h ram ? 70h ? 7fh 270h ram ? 70h ? 7fh 2f0h ram ? 70h ? 7fh 370h ram ? 70h ? 7fh 3f0h ram ? 70h ? 7fh 07fh 0ffh 17fh 1ffh 27fh 2ffh 37fh 3ffh ?? = ????? 0
pic12(l)f1612/16(l)f1613 ds40001737a_cn 22 ? ? 2014 microchip technology inc. 3-4 pic16(l)f1613 ?? bank 0-7 bank 0 bank 1 bank 2 bank 3 bank 4 bank 5 bank 6 bank 7 000h ??? 3-2 080h ??? 3-2 100h ??? 3-2 180h ??? 3-2 200h ??? 3-2 280h ??? 3-2 300h ??? 3-2 380h ??? 3-2 00bh08bh10bh18bh20bh28bh30bh38bh 00ch porta 08ch trisa 10ch lata 18ch ansela 20ch wpua 28ch odcona 30ch slrcona 38ch inlvla 00dh ? 08dh ? 10dh ? 18dh ? 20dh ?28dh ?30dh ?38dh ? 00eh portc 08eh trisc 10eh latc 18eh anselc 20eh wpuc 28eh odconc 30eh slrconc 38eh inlvlc 00fh ?08fh ?10fh ?18fh ?20fh ? 28fh ? 30fh ? 38fh ? 010h ? 090h ? 110h ? 190h ? 210h ? 290h ? 310h ? 390h ? 011h pir1 091h pie1 111h cm1con0 191h pmadrl 211h ? 291h ccpr1l 311h ? 391h iocap 012h pir2 092h pie2 112h cm1con1 192h pmadrh 212h ? 292h ccpr1h 312h ? 392h iocan 013h pir3 093h pie3 113h cm2con0 193h pmdatl 213h ? 293h ccp1con 313h ? 393h iocaf 014h pir4 094h pie4 114h cm2con1 194h pmdath 214h ? 294h ccp1cap 314h ? 394h ? 015h tmr0 095h option_reg 115h cmout 195h pmcon1 215h ? 295h ? 315h ? 395h ? 016h tmr1l 096h pcon 116h borcon 196h pmcon2 216h ? 296h ? 316h ? 396h ? 017h tmr1h 097h ? 117h fvrcon 197h vregcon 217h ? 297h ? 317h ? 397h ioccp 018h t1con 098h osctune 118h dac1con0 198h ? 218h ? 298h ccpr2l 318h ? 398h ioccn 019h t1gcon 099h osccon 119h dac1con1 199h ? 219h ? 299h ccpr2h 319h ? 399h ioccf 01ah tmr2 09ah oscstat 11ah ?19ah ? 21ah ?29ah ccp2con 31ah ?39ah ? 01bh pr2 09bh adresl 11bh ?19bh ? 21bh ?29bh ccp2cap 31bh ? 39bh ? 01ch t2con 09ch adresh 11ch zcd1con 19ch ? 21ch ?29ch ?31ch ? 39ch ? 01dh t2hlt 09dh adcon0 11dh apfcon 19dh ? 21dh ? 29dh ? 31dh ? 39dh ? 01eh t2clkcon 09eh adcon1 11eh ? 19eh ? 21eh ? 29eh ccptmrs 31eh ? 39eh ? 01fh t2rst 09fh adcon2 11fh ?19fh ? 21fh ? 29fh ? 31fh ? 39fh ? 020h ?? 80 ? 0a0h ?? 80 ? 120h ?? 80 ? 1a0h ? ? 0 220h ? ? 0 2a0h ? ? 0 320h ? ? 0 3a0h ? ? 0 0efh 06fh 16fh 1efh 26fh 2efh 36fh 3efh 070h ram 0f0h ram ? 70h ? 7fh 170h ram ? 70h ? 7fh 1f0h ram ? 70h ? 7fh 270h ram ? 70h ? 7fh 2f0h ram ? 70h ? 7fh 370h ram ? 70h ? 7fh 3f0h ram ? 70h ? 7fh 07fh 0ffh 17fh 1ffh 27fh 2ffh 37fh 3ffh ?? = ????? 0
? 2014 microchip technology inc. ds40001737a_cn 23 ? pic12(l)f1612/16(l)f1613 3-5 pic12(l)f1612/16(l)f1613 ?? bank 8-23 bank 8 bank 9 bank 10 bank 11 bank 12 bank 13 bank 14 bank 15 400h 40bh ??? 3-2 480h 48bh ??? 3-2 500h 50bh ??? 3-2 580h 58bh ??? 3-2 600h 60bh ??? 3-2 680h 68bh ??? 3-2 700h 70bh ??? 3-2 780h 78bh ??? 3-2 40ch ? 48ch ? 50ch ? 58ch ? 60ch ?68ch ?70ch ?78ch ? 40dh ? 48dh ? 50dh ? 58dh ? 60dh ?68dh ?70dh ?78dh ? 40eh ?48eh ?50eh ?58eh ?60eh ?68eh ?70eh ?78eh ? 40fh ?48fh ?50fh ?58fh ?60fh ? 68fh ? 70fh ? 78fh ? 410h ? 490h ? 510h ? 590h ? 610h ? 690h ? 710h ? 790h ? 411h ? 491h ?511h ? 591h ?611h ? 691h cwg1dbr 711h wdtcon0 791h crcdatl 412h ? 492h ? 512h ? 592h ? 612h ? 692h cwg1dbf 712h wdtcon1 792h crcdath 413h tmr4 493h ? 513h ? 593h ? 613h ? 693h cwg1as0 713h wdtpsl 793h crcaccl 414h pr4 494h ? 514h ? 594h ? 614h ? 694h cwg1as1 714h wdtpsh 794h crcacch 415h t4con 495h ? 515h ? 595h ? 615h ? 695h cwg1ocon0 715h wdttmr 795h crcshiftl 416h t4hlt 496h ? 516h ? 596h ? 616h ? 696h cwg1con0 716h ? 796h crcshifth 417h t4clkcon 497h ? 517h ? 597h ? 617h ? 697h cwg1con1 717h ? 797h crcxorl 418h t4rst 498h ? 518h ? 598h ? 618h ? 698h cwg1ocon1 718h scanladrl 798h crcxorh 419h ? 499h ? 519h ? 599h ? 619h ? 699h cwg1clkcon 719h scanladrh 799h crccon0 41ah tmr6 49ah ?51ah ?59ah ?61ah ?69ah cwg1ism 71ah scanhadrl 79ah crccon1 41bh pr6 49bh ?51bh ?59bh ?61bh ?69bh ? 71bh scanhadrh 79bh ? 41ch t6con 49ch ? 51ch ? 59ch ? 61ch ?69ch ? 71ch scancon0 79ch ? 41dh t6hlt 49dh ? 51dh ? 59dh ? 61dh ?69dh ? 71dh scantrig 79dh ? 41eh t6clkcon 49eh ?51eh ?59eh ?61eh ?69eh ?71eh ?79eh ? 41fh t6rst 49fh ?51fh ?59fh ?61fh ? 69fh ? 71fh ? 79fh ? 420h ? ? 0 4a0h ? ? 0 520h ? ? 0 5a0h ? ? 0 620h ? ? 0 6a0h ? ? 0 720h ? ? 0 7a0h ? ? 0 46fh 4efh 56fh 5efh 66fh 6efh 76fh 7efh 470h ? 70h ? 7fh 4f0h ? 70h ? 7fh 570h ? 70h ? 7fh 5f0h ? 70h ? 7fh 670h ? 70h ? 7fh 6f0h ? 70h ? 7fh 770h ? 70h ? 7fh 7f0h ? 70h ? 7fh 47fh 4ffh 57fh 5ffh 67fh 6ffh 77fh 7ffh bank 16 bank 17 bank 18 bank 19 bank 20 bank 21 bank 22 bank 23 800h 80bh ??? 3-2 880h 88bh ??? 3-2 900h 90bh ??? 3-2 980h 98bh ??? 3-2 a00h a0bh ??? 3-2 a80h a8bh ??? 3-2 b00h b0bh ??? 3-2 b80h b8bh ??? 3-2 80ch ? ? 0 88ch ? ? 0 90ch ? ? 0 98ch ? ? 0 a0ch ? ? 0 a8ch ? ? 0 b0ch ? ? 0 b8ch ? ? 0 86fh 8efh 96fh 9efh a6fh aefh b6fh befh 870h ? 70h ? 7fh 8f0h ? 70h ? 7fh 970h ? 70h ? 7fh 9f0h ? 70h ? 7fh a70h ? 70h ? 7fh af0h ? 70h ? 7fh b70h ? 70h ? 7fh bf0h ? 70h ? 7fh 87fh 8ffh 97fh 9ffh a7fh affh b7fh bffh ?? = ????? 0
pic12(l)f1612/16(l)f1613 ds40001737a_cn 24 ? ? 2014 microchip technology inc. 3-6 pic12(l)f1612/16(l)f1613 ?? bank 24-31 ?? = ????? 0 bank 24 bank 25 bank 26 bank 27 bank 28 bank 29 bank 30 bank 31 c00h c0bh ??? 3-2 c80h c8bh ??? 3-2 d00h d0bh ??? 3-2 d80h d8bh ??? 3-2 e00h e0bh ??? 3-2 e80h e8bh ??? 3-2 f00h f0bh ??? 3-2 f80h f8bh ??? 3-2 c0ch ?c8ch ?d0ch ?d8ch 3-7 ? ??? ? e0ch ?e8ch ?f0ch ?f8ch 3-8 ? ??? ? c0dh ?c8dh ?d0dh ? d8dh e0dh ?e8dh ?f0dh ?f8dh c0eh ?c8eh ?d0eh ?d8eh e0eh ?e8eh ?f0eh ?f8eh c0fh ?c8fh ?d0fh ?d8fh e0fh ?e8fh ?f0fh ?f8fh c10h ?c90h ? d10h ? d90h e10h ? e90h ?f10h ?f90h c11h ?c91h ? d11h ? d91h e11h ? e91h ?f11h ?f91h c12h ?c92h ? d12h ? d92h e12h ? e92h ?f12h ?f92h c13h ?c93h ? d13h ? d93h e13h ? e93h ?f13h ?f93h c14h ?c94h ? d14h ? d94h e14h ? e94h ?f14h ?f94h c15h ?c95h ? d15h ? d95h e15h ? e95h ?f15h ?f95h c16h ?c96h ? d16h ? d96h e16h ? e96h ?f16h ?f96h c17h ?c97h ? d17h ? d97h e17h ? e97h ?f17h ?f97h c18h ?c98h ? d18h ? d98h e18h ? e98h ?f18h ?f98h c19h ?c99h ? d19h ? d99h e19h ? e99h ?f19h ?f99h c1ah ?c9ah ?d1ah ?d9ah e1ah ?e9ah ?f1ah ?f9ah c1bh ?c9bh ?d1bh ?d9bh e1bh ?e9bh ?f1bh ?f9bh c1ch ?c9ch ?d1ch ? d9ch e1ch ?e9ch ?f1ch ?f9ch c1dh ?c9dh ?d1dh ? d9dh e1dh ?e9dh ?f1dh ?f9dh c1eh ?c9eh ?d1eh ?d9eh e1eh ?e9eh ?f1eh ?f9eh c1fh ?c9fh ?d1fh ?d9fh e1fh ?e9fh ?f1fh ?f9fh c20h ? ? 0 ca0h ? ? 0 d20h ? ? 0 da0h e20h ? ? 0 ea0h ? ? 0 f20h ? ? 0 fa0h c6fh cefh d6fh defh e6fh eefh f6fh fefh c70h ? 70h ? 7fh cf0h ? 70h ? 7fh d70h ? 70h ? 7fh df0h ? 70h ? 7fh e70h ? 70h ? 7fh ef0h ? 70h ? 7fh f70h ? 70h ? 7fh ff0h ? 70h ? 7fh cffh cffh d7fh dffh e7fh effh f7fh fffh
? 2014 microchip technology inc. ds40001737a_cn 25 ? pic12(l)f1612/16(l)f1613 3-7 pic12(l)f1612/16(l)f1613 ?? bank 27 3-8 pic12(l)f1612/16(l)f1613 ?? bank 31 bank 27 d8ch smt1tmrl d8dh smt1tmrh d8eh smt1tmru d8fh smt1cprl d90h smt1cprh d91h smt1cpru d92h smt1cpwl d93h smt1cpwh d94h smt1cpwu d95h smt1prl d96h smt1prh d97h smt1pru d98h smt1con0 d99h smt1con1 d9ah smt1stat d9bh smt1clk d9ch smt1sig d9dh smt1win d9eh smt2tmrl d9fh smt2tmrh da0h smt2tmru da1h smt2cprl da2h smt2cprh da3h smt2cpru da4h smt2cpwl da5h smt2cpwh da6h smt2cpwu da7h smt2prl da8h smt2prh da9h smt2pru daah smt2con0 dabh smt2con1 dach smt2stat dadh smt2clk daeh smt2sig dafh smt2win db0h ? defh ?? = ???? ? 0 bank 31 f8ch fe3h ? ? 0 fe4h status_shad fe5h wreg_shad fe6h bsr_shad fe7h pclath_shad fe8h fsr0l_shad fe9h fsr0h_shad feah fsr1l_shad febh fsr1h_shad fech ? fedh stkptr feeh tosl fefh tosh ?? = ????? 0
pic12(l)f1612/16(l)f1613 ds40001737a_cn 26 ? ? 2014 microchip technology inc. 3.2.6 ???? 3-9 ?????? ? 3-9 ???? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? bank 0-31 x00h x80h indf0 ? fsr0h/fsr0l ?????? ? xxxx xxxx uuuu uuuu x01h x81h indf1 ? fsr1h/fsr1l ?????? ? xxxx xxxx uuuu uuuu x02h x82h pcl program counter pc ? 0000 0000 0000 0000 x03h x83h status ? ? ?to pd zdcc ---1 1000 ---q quuu x04h x84h fsr0l ?? 0 ?? 0000 0000 uuuu uuuu x05h x85h fsr0h ?? 0 ?? 0000 0000 0000 0000 x06h x86h fsr1l ?? 1 ?? 0000 0000 uuuu uuuu x07h x87h fsr1h ?? 1 ?? 0000 0000 0000 0000 x08h x88h bsr ? ? ? bsr<4:0> ---0 0000 ---0 0000 x09h x89h wreg ? 0000 0000 uuuu uuuu x0ah x8ah pclath ? 7 ? -000 0000 -000 0000 x0bh x8bh intcon gie peie tmr0ie inte iocie tmr0if intf iocif 0000 0000 0000 0000 ?? x = ? u = ? q = ??? - = ??? 0 r = ????? 0
? 2014 microchip technology inc. ds40001737a_cn 27 ? pic12(l)f1612/16(l)f1613 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? bank 0 00ch porta ? ? ra5 ra4 ra3 ra2 ra1 ra0 --xx xxxx --xx xxxx 00dh ? ? ? ? 00eh portc (4) ? ? rc5 rc4 rc3 rc2 rc1 rc0 --xx xxxx --xx xxxx 00fh ? ? ? ? 010h ? ? ? ? 011h pir1 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if 00-- -000 00-- -000 012h pir2 ?c2if (4) c1if ? ? tmr6if tmr4if ccp2if -00- -000 -00- -000 013h pir3 ? ?cwgifzcdif ? ? ? ? --00 ---- --00 ---- 014h pir4 scanif crcif smt2pwaif smt2praif smt2if smt1pwaif smt1praif smt1if 0000 0000 0000 0000 015h tmr0 8 timer0 ??? xxxx xxxx uuuu uuuu 016h tmr1l 16 tmr1 ????? xxxx xxxx uuuu uuuu 017h tmr1h 16 tmr1 ????? xxxx xxxx uuuu uuuu 018h t1con tmr1cs<1:0> t1ckps<1:0> ?t1sync ?tmr1on 0000 -0-0 uuuu -u-u 019h t1gcon tmr1ge t1gpol t1gtm t1gspm t1ggo/ done t1gval t1gss<1:0> 0000 0x00 uuuu uxuu 01ah tmr2 timer2 ?? 0000 0000 0000 0000 01bh pr2 timer2 ?? 1111 1111 1111 1111 01ch t2con on ckps<2:0> outps<3:0> 0000 0000 0000 0000 01dh t2hlt psync ckpol cksync ? mode<3:0> 000- 0000 000- 0000 01eh t2clkcon ? ? ? ? ? t2cs<2:0> ---- -000 ---- -000 01fh t2rst ? ? ? ? rsel<3:0> ---- 0000 ---- 0000 ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 28 ? ? 2014 microchip technology inc. bank 1 08ch trisa ? ? trisa5 trisa4 ? (2) trisa2 trisa1 trisa0 --11 1111 --11 1111 08dh ? ? ? ? 08eh trisc (4) ? ? trisc5 trisc4 trisc3 trisc2 trisc1 trisc0 --11 1111 --11 1111 08fh ? ? ? ? 090h ? ? ? ? 091h pie1 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie 00-- -000 00-- -000 092h pie2 ?c2ie (4) c1ie ? ? tmr6ie tmr4ie ccp2ie -00- -000 -00- -000 093h pie3 ? ? cwgie zcdie ? ? ? ? --00 ---- --00 ---- 094h pie4 scanie crcie smt2pwaie smt2praie smt2ie smt1pwaie smt1praie smt1ie 0000 0000 0000 0000 095h option_reg wpuen intedg tmr0cs tmr0se psa ps<2:0> 1111 1111 1111 1111 096h pcon stkovf stkunf wdtwv rwdt rmclr ri por bor 00-1 11qq qq-q qquu 097h ? ? ? ? 098h osctune ? ?tun<5:0> --00 0000 --00 0000 099h osccon spllen ircf<3:0> ?scs<1:0> 0011 1-00 0011 1-00 09ah oscstat ? pllr ? hfiofr hfiofl mfiofr lfiofr hfiofs -0-0 0000 -q-q qqqq 09bh adresl adc ??? xxxx xxxx uuuu uuuu 09ch adresh adc ??? xxxx xxxx uuuu uuuu 09dh adcon0 ? chs<4:0> go/done adon -000 0000 -000 0000 09eh adcon1 adfm adcs<2:0> ? ? adpref<1:0> 0000 --00 0000 --00 09fh adcon2 trigsel<3:0> ? ? ? ? 0000 ---- 0000 ---- 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 29 ? pic12(l)f1612/16(l)f1613 bank 2 10ch lata ? ?lata5lata4 ? lata2 lata1 lata0 --xx -xxx --uu -uuu 10dh ? ? ? ? 10eh latc (4) ? ? latc5 latc4 latc3 latc2 latc1 latc0 --xx xxxx --uu uuuu 10fh ? ? ? ? 110h ? ? ? ? 111h cm1con0 c1on c1out c1oe c1pol ? c1sp c1hys c1sync 0000 -100 0000 -100 112h cm1con1 c1intp c1intn c1pch<1:0> ? c1nch<2:0> 0000 -000 0000 -000 113h cm2con0 (4) c2on c2out c2oe c2pol ? c2sp c2hys c2sync 0000 -100 0000 -100 114h cm2con1 (4) c2intp c2intn c2pch<1:0> ? c2nch<2:0> 0000 -000 0000 -000 115h cmout ? ? ? ? ? ?mc2out mc1out ---- --00 ---- --00 116h borcon sboren borfs ? ? ? ? ? borrdy 10-- ---q uu-- ---u 117h fvrcon fvren fvrrdy tsen tsrng cdafvr<1:0> adfvr<1:0> 0q00 0000 0q00 0000 118h dac1con0 dac1en ? dac1oe1 ? dac1pss<1:0> ? ? 0-0- 00-- 0-0- 00-- 119h dac1con1 dac1r<7:0> 0000 0000 0000 0000 11ah ? ? ? ? 11bh ? ? ? ? 11ch zcd1con zcd1en zcd1oe zcd1out zcd1pol ? ? zcd1intp zcd1intn 0000 --00 0000 --00 11dh apfcon ? cwgasel (3) cwgbsel (3) ?t1gsel ? ccp2sel (4) ccp1sel (3) -00- 0-00 -00- 0-00 11eh ? ? ? ? 11fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 30 ? ? 2014 microchip technology inc. bank 3 18ch ansela ? ? ?ansa4 ? ansa2 ansa1 ansa0 ---1 -111 ---1 -111 18dh ? ? ? ? 18eh anselc (4) ? ? ? ? ansc3 ansc2 ansc1 ansc0 ---- 1111 ---- 1111 18fh ? ? ? ? 190h ? ? ? ? 191h pmadrl ???? 0000 0000 0000 0000 192h pmadrh ? (2) ???? 1000 0000 1000 0000 193h pmdatl ???? xxxx xxxx uuuu uuuu 194h pmdath ? ? ???? --xx xxxx --uu uuuu 195h pmcon1 ? (2) cfgs lwlo free wrerr wren wr rd 1000 x000 1000 q000 196h pmcon2 ?? 2 0000 0000 0000 0000 197h vregcon (1) ? ? ? ? ? ?vregpm ---- --01 ---- --01 198h 19fh ? ? ? ? bank 4 20ch wpua ? ? wpua5 wpua4 wpua3 wpua2 wpua1 wpua0 --11 1111 --11 1111 20dh ? ? ? ? 20eh wpuc (4) ? ? wpuc5 wpuc4 wpuc3 wpuc2 wpuc1 wpuc0 --11 1111 --11 1111 20fh 21fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 31 ? pic12(l)f1612/16(l)f1613 bank 5 28ch odcona ? ? oda5 oda4 ? oda2oda1oda0 --00 -000 --00 -000 28dh ? ? ? ? 28eh odconc (4) ? ? odc5 odc4 odc3 odc2 odc1 odc0 --00 0000 --00 0000 28fh ? ? ? ? 290h ? ? ? ? 291h ccp1rl ? / ? /pwm1 ? lsb xxxx xxxx uuuu uuuu 292h ccp1rh ? / ? /pwm1 ? msb xxxx xxxx uuuu uuuu 293h ccp1con en oe out fmt mode<3:0> 0000 0000 0000 0000 294h ccp1cap ? ? ? ? ? ?cts<1:0> ---- --00 ---- --00 295h ? 297h ? ? ? ? 298h ccp2rl ? / ? /pwm2 ? lsb xxxx xxxx uuuu uuuu 299h ccp2rh ? / ? /pwm2 ? msb xxxx xxxx uuuu uuuu 29ah ccp2con en oe out fmt mode<3:0> 0000 0000 0000 0000 29bh ccp2cap ? ? ? ? ? ?cts<1:0> ---- --00 ---- --00 29ch ? ? ? ? 29dh ? ? ? ? 29eh ccptmrs ? ? ? ? c2tsel<1:0> c1tsel<1:0> ---- 0000 ---- 0000 29fh ? ? ? ? bank 6 30ch slrcona ? ? slra5 slra4 ? slra2 slra1 slra0 --00 -000 --00 -000 30dh ? ? ? ? 30eh slrconc (4) ? ? slrc5 slrc4 slrc3 slrc2 slrc1 slrc0 --00 0000 --00 0000 30fh ? 31fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 32 ? ? 2014 microchip technology inc. bank 7 38ch inlvla ? ? inlvla5 inlvla4 inlvla3 inlvla2 inlvla1 inlvla0 --11 1111 --11 1111 38dh ? ? ? ? 38eh inlvlc (4) ? ? inlvlc5 inlvlc4 inlvlc3 inlvlc2 inlvlc1 inlvlc0 --11 1111 --11 1111 30fh ? ? ? ? 390h ? ? ? ? 391h iocap ? ? iocap5 iocap4 iocap3 iocap2 iocap1 iocap0 --00 0000 --00 0000 392h iocan ? ? iocan5 iocan4 iocan3 i ocan2 iocan1 iocan0 --00 0000 --00 0000 393h iocaf ? ? iocaf5 iocaf4 iocaf3 iocaf2 iocaf1 iocaf0 --00 0000 --00 0000 394h ? ? ? ? 395h ? ? ? ? 396h ? ? ? ? 397h ioccp (4) ? ? ioccp5 ioccp4 ioccp3 i occp2 ioccp1 ioccp0 --00 0000 --00 0000 398h ioccn (4) ? ? ioccn5 ioccn4 ioccn3 ioccn2 ioccn1 ioccn0 --00 0000 --00 0000 399h ioccf (4) ? ? ioccf5 ioccf4 ioccf3 ioccf2 ioccf1 ioccf0 --00 0000 --00 0000 39ah 39fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 33 ? pic12(l)f1612/16(l)f1613 bank 8 40ch 412h ? ? ? ? 413h tmr4 timer4 ?? 0000 0000 0000 0000 414h pr4 timer4 ?? 1111 1111 1111 1111 415h t4con on ckps<2:0> outps<3:0> 0000 0000 0000 0000 416h t4hlt psync ckpol cksync ? mode<3:0> 000- 0000 000- 0000 417h t4clkcon ? ? ? ? ? t4cs<2:0> ---- -000 ---- -000 418h t4rst ? ? ? ? rsel<3:0> ---- 0000 ---- 0000 419h ? ? ? ? 41ah tmr6 timer6 ?? 0000 0000 0000 0000 41bh pr6 timer6 ?? 1111 1111 1111 1111 41ch t6con on ckps<2:0> outps<3:0> 0000 0000 0000 0000 41dh t6hlt psync ckpol cksync ? mode<3:0> 000- 0000 000- 0000 41eh t6clkcon ? ? ? ? ? t6cs<2:0> ---- -000 ---- -000 41fh t6rst ? ? ? ? rsel<3:0> ---- 0000 ---- 0000 bank 9 48ch 49fh ? ? ? ? bank 10 50ch 51fh ? ? ? ? bank 11 58ch 59fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 34 ? ? 2014 microchip technology inc. bank 12 60ch 61fh ? ? ? ? bank 13 68ch 690h ? ? ? ? 691h cwg1dbr ? ?dbr<5:0> --00 0000 --00 0000 692h cwg1dbf ? ?dbf<5:0> --xx xxxx --xx xxxx 693h cwg1as0 shutdown ren lsbd<1:0> lsac<1:0> ? ? 0000 00-- 0000 00-- 694h cwg1as1 ? tmr6as tmr4as tmr2as ?c2as (4) c1as inas -000 -000 -000 -000 695h cwg1ocon0 ovrd ovrc ovrb ovra strd strc strb stra 0000 0000 0000 0000 696h cwg1con0 en ld ? ? ? mode<2:0> 00-- -000 00-- -000 697h cwg1con1 ? ?in ? pold polc polb pola --x- 0000 --x- 0000 698h cwg1ocon1 ? ? ? ? oed oec oeb oea ---- 0000 ---- 0000 699h cwg1clkcon ? ? ? ? ? ? ?cs ---- ---0 ---- --0 69ah cwg1ism ? ? ? ? ?is<2:0> ---- -000 ---- -000 69bh 6efh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 35 ? pic12(l)f1612/16(l)f1613 bank 14 70ch 710h ? ? ? ? 711h wdtcon0 ? ? wdtps<4:0> sen --qq qqqq --qq qqqq 712h wdtcon1 ? wdtcs<2:0> ? window<2:0> -qqq -qqq -qqq -qqq 713h wdtpsl pscnt<7:0> 0000 0000 0000 0000 714h wdtpsh pscnt<15:8> 0000 0000 0000 0000 715h wdttmr wdttmr<4:0> state pscnt<17:16> 0000 0000 0000 0000 716h ? ? ? ? 717h ? ? ? ? 718h scanladrl ladr<7:0> 0000 0000 0000 0000 719h scanladrh ladr<15:8> 0000 0000 0000 0000 71ah scanhadrl hadr<7:0> 1111 1111 1111 1111 71bh scanhadrh hadr<15:8> 1111 1111 1111 1111 71ch scancon0 en scango busy invalid intm ?mode<1:0> 0000 0-00 0000 0-00 71dh scantrig ? ? tsel<1:0> ---- --00 ---- --00 71eh ? ? ? ? 71fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 36 ? ? 2014 microchip technology inc. bank 15 78ch 790h ? ? ? ? 791h crcdatl data<7:0> xxxx xxxx xxxx xxxx 792h crcdath data<15:8> xxxx xxxx xxxx xxxx 793h crcaccl acc<7:0> 0000 0000 0000 0000 794h crcacch acc<15:8> 0000 0000 0000 0000 795h crcshiftl shift<7:0> 0000 0000 0000 0000 796h crcshifth shift<15:8> 0000 0000 0000 0000 797h crcxorl x<7:1> ? xxxx xxx- xxxx xxx- 798h crcxorh x<15:8> xxxx xxxx xxxx xxxx 799h crccon0 en crcgo busy accm ? ? shiftm full 0000 --00 0000 -00 79ah crccon1 dlen<3:0> plen<3:0> 0000 0000 0000 0000 79bh 79fh ? ? ? ? bank 16-26 x0ch/ x8ch ? x1fh/ x9fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 37 ? pic12(l)f1612/16(l)f1613 bank 27 d80h d8bh ? ? ? ? d8ch smt1tmrl smt1tmr<7:0> 0000 0000 0000 0000 d8dh smt1tmrh smt1tmr<15:8> 0000 0000 0000 0000 d8eh smt1tmru smt1tmr<23:16> 0000 0000 0000 0000 d8fh smt1cprl smt1cpr<7:0> xxxx xxxx xxxx xxxx d90h smt1cprh smt1cpr<15:8> xxxx xxxx xxxx xxxx d91h smt1cpru smt1cpr<23:16> xxxx xxxx xxxx xxxx d92h smt1cpwl smt1cpw<7:0> xxxx xxxx xxxx xxxx d93h smt1cpwh smt1cpw<15:8> xxxx xxxx xxxx xxxx d94h smt1cpwu smt1cpw<23:16> xxxx xxxx xxxx xxxx d95h smt1prl smt1pr<7:0> xxxx xxxx xxxx xxxx d96h smt1prh smt1pr<15:8> xxxx xxxx xxxx xxxx d97h smt1pru smt1pr<23:16> xxxx xxxx xxxx xxxx d98h smt1con0 en ? stp wpol spol cpol smtxps<1:0> 0-00 0000 0-00 0000 d99h smt1con1 smtxgo repeat ? ? mode<3:0> 00-- 0000 00-- 0000 d9ah smt1stat cprup cpwup rst ? ?tswsas 000- -000 000- -000 d9bh smt1clk ? ? ? ? ? csel<2:0> ---- -000 ---- -000 d9ch smt1sig ? ? ? ? ssel<3:0> ---- 0000 ---- 0000 d9dh smt1win ? ? ? ? ? wsel<2:0> ---- -000 ---- -000 d9eh smt2tmrl smt2tmr<7:0> 0000 0000 0000 0000 d9fh smt2tmrh smt2tmr<15:8> 0000 0000 0000 0000 da0h smt2tmru smt2tmr<23:16> 0000 0000 0000 0000 da1h smt2cprl smt2cpr<7:0> xxxx xxxx xxxx xxxx da2h smt2cprh smt2cpr<15:8> xxxx xxxx xxxx xxxx da3h smt2cpru smt2cpr<23:16> xxxx xxxx xxxx xxxx da4h smt2cpwl smt2cpw<7:0> xxxx xxxx xxxx xxxx 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 38 ? ? 2014 microchip technology inc. bank 27 da5h smt2cpwh smtxcpw<15:8> xxxx xxxx xxxx xxxx da6h smt2cpwu smtxcpw<23:16> xxxx xxxx xxxx xxxx da7h smt2prl smtxpr<7:0> xxxx xxxx xxxx xxxx da8h smt2prh smtxpr<15:8> xxxx xxxx xxxx xxxx da9h smt2pru smtxpr<23:16> xxxx xxxx xxxx xxxx daah smt2con0 en ? stp wpol spol cpol smtxps<1:0> 0-00 0000 0-00 0000 dabh smt2con1 smtxgo repeat ? ? mode<3:0> 00-- 0000 00-- 0000 dach smt2stat cprup cpwup rst ? ?tswsas 000- -000 000- -000 dadh smt2clk ? ? ? ? ? csel<2:0> ---- -000 ---- -000 daeh smt2sig ? ? ? ? ssel<3:0> ---- 0000 ---- 0000 dafh smt2win ? ? ? ? ? wsel<2:0> ---- -000 ---- -000 bank 28-30 x0ch/ x8ch ? x1fh/ x9fh ? ? ? ? 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 39 ? pic12(l)f1612/16(l)f1613 bank 31 f8ch ? fe3h ? ? ? ? fe4h status_ shad ? ? ? ? ? z_shad dc_shad c_shad ---- -xxx ---- -uuu fe5h wreg_ shad ???? xxxx xxxx uuuu uuuu fe6h bsr_ shad ? ? ? ????? ---x xxxx ---u uuuu fe7h pclath_ shad ? ?????? -xxx xxxx uuuu uuuu fe8h fsr0l_ shad ?? 0 ????? xxxx xxxx uuuu uuuu fe9h fsr0h_ shad ?? 0 ????? xxxx xxxx uuuu uuuu feah fsr1l_ shad ?? 1 ????? xxxx xxxx uuuu uuuu febh fsr1h_ shad ?? 1 ????? xxxx xxxx uuuu uuuu fech ? ? ? ? fedh stkptr ? ? ? ??? ---1 1111 ---1 1111 feeh tosl ?? xxxx xxxx uuuu uuuu fefh tosh ? ?? -xxx xxxx -uuu uuuu 3-10 ??? ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por bor ?? ?? ?? x = ? u = ? q = ??? - = ?? r = ????? 0 ? 1 pic12f1612/16f1613 2 ??? 1 3 pic12(l)f1612 4 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 40 ? ? 2014 microchip technology inc. 3.3 pcl pclath pc ? 15 ???? pcl ??? pc<14:8> pclath ?? ?? pc ? 3-3 ?? pc ? 5 ? 3-3 ? pc ? 3.3.1 ? pcl ? pcl ?????? ??? pc<14:8> pch pclath ???? ? 7 ? pclath ?? ? 8 ? pcl ?? 15 ? pclath ?? pcl ?? 3.3.2 goto goto ??? addwf pcl ???? goto ? ?????? pcl ? ? ? 256 ?? ??? an556 implementing a table read ds00556 3.3.3 ? ? call ??? ????????? call ??????? pcl ? ?? 256 ?? ? call ?? pch<2:0> pcl ?? call ?? pch<6:3> ? pclath<6:3> callw ?? pclath w ??? ?? callw ? w ?? ?? callw ?? pcl ?? w ? pch ? pclath ? 3.3.4 ? ????? pc ???? ???????? ? brw bra ? pc ? ??????????? pcl ? ? brw w ???? ? ?? brw pc ?? pc + 1 + w ? bra pc ? pc + 1 + bra ? ? 78 6 14 0 0 4 11 0 60 14 7 8 60 0 14 15 0 14 15 0 14 pcl pcl pcl pcl pcl pch pch pch pch pch pc pc pc pc pc pclath pclath pclath goto, call callw brw bra alu e1k4p ?0-? <10:0> w pc + w rev. 10-000042a 7/30/2013 1 pcl 0 ,a??, < ,x?? pc + ?0-? <8:0>
? 2014 microchip technology inc. ds40001737a_cn 41 ? pic12(l)f1612/16(l)f1613 3.4 ? 16 x15 ?? ? 3-4 ? 3-7 ??????? ??? call callw ??? ?? pc ???? return retlw retfie ???? pc ? pclath ????? stvren ?? 0 ???? ?? 16 ?? 17 ? ????????? 18 ????????? ???? stkovf stkunf ? / ? 1 3.4.1 ?? ? tosh tosl stkptr ???? stkptr ?????? tosh:tosl ? ?????? pc ? ? 15 tos ? tosh tosl ?? ?? stkptr ? tosh:tosl ? ? / tosh:tosl stkptr ?? 5 ? ?? call callw ?? stkptr retlw return retfie ? stkptr ???? stkptr ?????? stkptr ?? ????? call callw ? stkptr ? pc ?? pc ??? stkptr ???? ? 3-4 ? 3-7 ? 3-4 ??? 1 ? 1 ?? push pop ? / ?????? call callw return retlw retfie ????? ? ?? stkptr ? ?? stkptr = 0x1f /u!6 ! ? stvren = 0 ? s6? ! ? stvren = 1 ? ?? g!5b? ! a 0n?0n ?>?? s ?j\? ? 0x1f ?vps6?z t$v / ?$v! tosh/tosl ? , <e 2 0 ?vp t$v / ?$v! >/u!6 tosh/tosl ?, <e 2    0x0f ,xy?? 0x0000 stkptr = 0x1f tosh:tosl 0x0f 0x0e 0x0d 0x0c 0x0b 0x0a 0x09 0x08 0x07 0x06 0x04 0x05 0x03 0x02 0x01 0x00 0x1f tosh:tosl rev. 10-000043a 7/30/2013
pic12(l)f1612/16(l)f1613 ds40001737a_cn 42 ? ? 2014 microchip technology inc. ? 3-5 ??? 2 ? 3-6 ??? 3 stkptr = 0x00 e 2   a1 /z1? ? call  ) ?? a,x g!5b?vp;> z return ?? e 2  >9/?caud <j  ?j\e?0n (??? 0x1f ?? 0x0f 0x0e 0x0d 0x0c 0x0b 0x0a 0x09 0x08 0x07 0x06 0x04 0x05 0x03 0x02 0x01 0x00 tosh:tosl rev. 10-000043b 7/30/2013 stkptr = 0x06  ? call a ? call t? ?? a g!5b2obo ??2?? return ? ??g? e 2  9/?caud <j  ? ? r1? 0x0f 0x0e 0x0d 0x0c 0x0b 0x0a 0x09 0x08 0x07 0x06 0x04 0x05 0x03 0x02 0x01 0x00 r1? r1? r1? r1? r1? r1? tosh:tosl rev. 10-000043c 7/30/2013
? 2014 microchip technology inc. ds40001737a_cn 43 ? pic12(l)f1612/16(l)f1613 ? 3-7 ??? 4 3.4.2 / y stvren ?? 1 ?? ? 16 ?? 1 ? ? pcon ?? ?? stkovf stkunf 1 3.5 ?? indfn ?? indfn ? ??????? fsr ? ???? fsrn ?? indfn ?? 0 ? ?????? fsrn ? ? fsrnh fsrnl ? fsr ?? 16 ?? 65536 ??????? 3 ? ?? ? ? ? stkptr = 0x10 $??t call ?? ?j\a?5b 0x10 ?w1 b   0x00 1 ?l 2j?z,a 0x00 ?,xe 2  ?vps6?z  t$v?$v!? *!5 ??z,a,| ) 0x00 ? e 2   0x0f 0x0e 0x0d 0x0c 0x0b 0x0a 0x09 0x08 0x07 0x06 0x04 0x05 0x03 0x02 0x01 0x00 e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   e 2   tosh:tosl rev. 10-000043d 7/30/2013
pic12(l)f1612/16(l)f1613 ds40001737a_cn 44 ? ? 2014 microchip technology inc. ? 3-8 ?? 0x0000 0x0fff 0x0000 0x7fff 0xffff 0x0000 0x0fff 0x1000 0x1fff 0x2000 0x29af 0x29b0 0x7fff 0x8000 
= 
= .d ? i%  l? ? i%  i ? i%  fsr  8 "?? y,| <  3f?6?`<r)??gb,| a? ??? <,| <><? rev. 10-000044a 7/30/2013
? 2014 microchip technology inc. ds40001737a_cn 45 ? pic12(l)f1612/16(l)f1613 3.5.1 ?? ??? fsr ? 0x000 fsr ? 0xfff ?? sfr gpr ?? ??? ? 3-9 ??? ? 40 bsr 60 97??0-? 0 0 7fsrxh 000 0 7fsrxl w? 00000 00001 00010 11111 ,| ey? ,| )ey? 0x00 0x7f ,| ey?,| )ey? bank 0 bank 1 bank 2 bank 31 rev. 10-000056a 7/31/2013
pic12(l)f1612/16(l)f1613 ds40001737a_cn 46 ? ? 2014 microchip technology inc. 3.5.2 ? ?? fsr ? 0x2000 fsr ? 0x29af ???? 80 ?? gpr ???? 0x00 ??? ???? 80 ???? fsr ????? gpr 16 ???? ? 3-10 ?? 3.5.3 ?????? ? fsr ????? fsrnh msb 1 ? 15 ?? indf ?? ? ?? ? 8 ? indf ? ?? fsr/indf ?? ?? fsr/indf ?? ??????? ? 3-11 ? 0x020 bank 0 0x06f 0x0a0 bank 1 0x0ef 0x120 bank 2 0x16f 0xf20 bank 30 0xf6f 001 00 77 fsrnh fsrnl ,| )ey? 0x2000 0x29af rev. 10-000057a 7/31/2013 0x0000 k?, /?c ,| < ?" 8 !? 0x7fff 1 00 77 fsrnh fsrnl ,| )ey? 0x8000 0xffff rev. 10-000058a 7/31/2013
? 2014 microchip technology inc. ds40001737a 47 ? pic12(l)f1612/16(l)f1613 4.0 ?? id 4.1 ???? ? ?? 8007h 1 8008h 2 8009h 3 ? debug ??? ?? 1
pic12(l)f1612/16(l)f1613 ds40001737a 48 ? ? 2014 microchip technology inc. 4.2 ? ? 4-1 config1 1 u-1 u-1 r/p-1 r/p-1 r/p-1 u-1 ? ? clkouten boren<1:0> (1) ? bit 13 bit 8 r/p-1 r/p-1 r/p-1 u-1 u-1 u-1 r/p-1 r/p-1 cp (2) mclre pwrte ? ? ? fosc<1:0> bit 7 bit 0 ?? r = ? p = ? u = ?? 1 0 = 1 = 1-n = ??? bit 13-12 ?? ? 1 bit 11 clkouten ?? 1 = ? clkout ? clkout ? i/o 0 = clkout ? clkout bit 10-9 boren<1:0> ??? (1) 11 = ? bor 10 = ??? bor ?? bor 01 = bor borcon ? sboren 00 = ? bor bit 8 ?? ? 1 bit 7 cp ? (2) 1 = ?? 0 = ??? bit 6 mclre mclr /v pp ?? lvp = 1 ? lvp = 0 1 =mclr /v pp ?? mclr ? 0 =mclr /v pp ??? mclr ?? wpua3 ? bit 5 pwrte ???? 1 = ? pwrt 0 = ? pwrt bit 4-2 ?? ? 1 bit 1-0 fosc<1:0> ? 11 = ech ?????? clkin 10 = ecm ?????? clkin 01 = ecl ?????? clkin 00 = intosc clkin ? i/o ? 1 ????????? 2 ???????
? 2014 microchip technology inc. ds40001737a 49 ? pic12(l)f1612/16(l)f1613 ? 4-2 config2 2 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 lvp (1) debug (3) lpbor borv (2) stvren pllen bit 13 bit 8 r/p-1 u-1 u-1 u-1 u-1 u-1 r/p-1 r/p-1 zcddis ? ? ? ? ?wrt<1:0> bit 7 bit 0 ?? r = ? p = ? u = ?? 1 0 = 1 = 1-n = ??? bit 13 lvp ??? (1) 1 = ???? 0 = ? mclr ???? bit 12 debug ??? (3) 1 = ?? icspclk icspdat ? i/o 0 = ?? icspclk icspdat ?? bit 11 lpbor ? bor ? 1 = ???? 0 = ????? bit 10 borv ???? (2) 1 = ??? v bor ? 0 = ??? v bor ? bit 9 stvren ? / y? 1 = ?L? 0 = ??? bit 8 pllen pll ? 1 = ? 4xpll 0 = ? 4xpll bit 7 zcddis zcd ? 1 = ? zcd ? zcd1con ? zcd1en 1 ? zcd 0 = ? zcd bit 6-2 ?? ? 1 bit 1-0 wrt<1:0> ? 2 kw pic12(l)f1612/16(l)f1613 11 = off ? 10 = boot 000h 1ffh 200h 7ffh pmcon ? 01 = half 000h 3ffh 400h 7ffh pmcon ? 00 = all 000h 7ffh ?? pmcon ? ? 1 ? lvp ???? lvp ? 0 2 ?? v bor 3 debug ???? ? 1
pic12(l)f1612/16(l)f1613 ds40001737a 50 ? ? 2014 microchip technology inc. ? 4-3 config3 3 r/p-0 r/p-0 r/p-1 r/p-1 r/p-1 r/p-1 wdtccs<2:0> wdtcws<2:0> bit 13 bit 8 u-1 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 ? wdte<1:0> wdtcps<4:0> bit 7 bit 0 ?? r = ? p = ? u = ?? 1 0 = 1 = 1-n = ??? bit 13-11 wdtccs<2:0> wdt ?? 111 = ? wdt ?? cs<2:0> ? 110 = ? ? ? 010 = 001 = wdt ?? mfintosc 31.25 khz ?? 000 = wdt ?? lfintosc 31.00 khz bit 10-8 wdtcws<2:0> wdt ?? bit 7 ?? ? 1 bit 6-5 wdte<1:0> ??? 11 = ??? wdt wdtcon0 ? sen 10 = ?? wdt ?? wdt 01 = wdt wdtcon0 ? sen 00 = ? wdt wdtcws <2:0> por ?? ? ?? ? ? ? ??? ??? ??? 111 111 n/a 100 ??? = 111 110 111 n/a 100 101 101 25 75 100 100 37.5 62.5 011 011 50 50 010 010 62.5 37.5 001 001 75 25 000 000 87.5 12.5 (1)
? 2014 microchip technology inc. ds40001737a 51 ? pic12(l)f1612/16(l)f1613 bit 4-0 wdtcps<4:0> wdt ? ? 1 12.5% ????? wdtcon1 ?? ? 4-3 config3 3 wdtcps <4:0> por ? wdtps wdtps ? ? ?? f in =31khz 11111 01011 1:65536 2 16 2s ??? = 11111 10011 ... 11110 10011 ... 11110 1:32 2 5 1ms 10010 10010 1:8388608 2 23 256 s 10001 10001 1:4194304 2 22 128 s 10000 10000 1:2097152 2 21 64 s 01111 01111 1:1048576 2 20 32 s 01110 01110 1:524299 2 19 16 s 01101 01101 1:262144 2 18 8s 01100 01100 1:131072 2 17 4s 01011 01011 1:65536 2 16 2s 01010 01010 1:32768 2 15 1s 01001 01001 1:16384 2 14 512 ms 01000 01000 1:8192 2 13 256 ms 00111 00111 1:4096 2 12 128 ms 00110 00110 1:2048 2 11 64 ms 00101 00101 1:1024 2 10 32 ms 00100 00100 1:512 2 9 16 ms 00011 00011 1:256 2 8 8ms 00010 00010 1:128 2 7 4ms 00001 00001 1:64 2 6 2ms 00000 00000 1:32 2 5 1ms
pic12(l)f1612/16(l)f1613 ds40001737a 52 ? ? 2014 microchip technology inc. 4.3 ? ??????? ?????? 4.3.1 ??? cp ?? cp = 0 ???? ??? 0 ?? cpu ??? ??? 4.4 4.4 ???? ? ????? ?? wrt<1:0> ?? 4.5 ? id 4 ? 8000h-8003h ?? id ?????? ??????? ??? 10.4 ?? id id ?? ??? pic12(l)f1612/pic16(l)f1613 memory programming specification ds40001720
? 2014 microchip technology inc. ds40001737a 53 ? pic12(l)f1612/16(l)f1613 4.6 id ? id ? 8006h ? id ? id ? 9 id 5 ? id ? ??? 10.4 ? id id ?? ???? id ? id 4.7 ? id ? 4-4 devid id ? rrrrrr dev<13:8> bit 13 bit 8 rrrrrrrr dev<7:0> bit 7 bit 0 ?? r = ? 1 = 10 = bit 13-0 dev<13:0> id ? 4-5 revid id ? rrrrrr rev<13:8> bit 13 bit 8 rrrrrrrr rev<7:0> bit 7 bit 0 ?? r = ? 1 = 10 = bit 13-0 rev<13:0> id devid<13:0> ? pic12f1612 11 0000 0101 1000 3058h pic12lf1612 11 0000 0101 1001 3059 h PIC16F1613 11 0000 0100 1100 304ch pic16lf1613 11 0000 0100 1101 304dh
pic12(l)f1612/16(l)f1613 ds40001737a_cn 54 ? ? 2014 microchip technology inc. 5.0 ? 5.1 ???????? ?? ???????? ? 5-1 ??? ????????? ??? pll ??? ???? ? ???????? ??????? 1. ecl ?????? 0mhz 0.5 mhz 2. ecm ????? 0.5 mhz 4mhz 3. ech ?????? 4mhz 32 mhz 4. intosc ? 31 khz 32 mhz ????? fosc<1:0> ? fosc ????? ech ecm ecl ??????? ??? intosc ???????? ?? lfintosc mfintosc hfintosc ? ?? ? 5-1 ? ?????
? 2014 microchip technology inc. ds40001737a_cn 55 ? pic12(l)f1612/16(l)f1613 ? 5-1 pic ? mcu ?????? rev. 10-000155a 10/11/2013 31 khz 95 < ane < hfintosc (1) 16 mhz 8 mhz 4 mhz 2 mhz 1 mhz *500 khz *250 khz *125 khz 62.5 khz *31.25 khz *31 khz ircf<3:0> 4 intosc 7? cpu
`a? ?,? f osc (1) lfintosc (1) 7? wdt a pwrt
` jaa? * ?*b?/? ircf ey? scs<1:0> 2 600 khz 95 < frc (1) 7? adc
`jaa? clkin 1 0 4x pll (2) hfpll 16 mhz 500 khz 95 < mfintosc (1) yf? 95 < ? + 7?a? pllen spllen fosc<1:0> 2 00 1x 01 +- ? 1 5.2 ??? 2 fosc<1:0> = 00 ? ircf<3:0> = 1110 ?? 4x pll
pic12(l)f1612/16(l)f1613 ds40001737a_cn 56 ? ? 2014 microchip technology inc. 5.2 ?? ???????? ??????? ?????? ???? hfpll ? 3 ????? 16 mhz ?? hfintosc 500 khz mfintosc 31 khz ?? lfintosc ? osccon ????? scs ??????????? 5.3 ? ? ? 5.2.1 ??? ??2??????? ???? ? fosc<1:0> ? ????????? ? osccon ? scs<1:0> ?? ??? - fosc ???? ? 5.3 ? ? ? 5.2.1.1 ec ?? ?? external clock ec ??? ???????????? ??? clkin ? clkout ? i/o clkout ? 5-2 ec ??? ec ?????? f osc ? ? ech?? ?? 4-20 mhz ? ecm?? ?? 0.5-4 mhz ? ecl?? ?? 0-0.5 mhz ?? ec ???? ost ???y por ?? ?? pic ? mcu ?? ?????? ?????? ???? ? 5-2 clkin clkout ? ??? pic ? mcu f osc /4 i/o (1) ? 1 ?? clkouten ??? ec ????
? 2014 microchip technology inc. ds40001737a_cn 57 ? pic12(l)f1612/16(l)f1613 5.2.2 ??? ??2?????? ?????? ? fosc<1:0> ? intosc ?????????? ??? ? ? osccon ? scs<1:0> ??????? 5.3 ? intosc ?? clkin ? i/o clkout ? i/o clkout osc2/clkout ?? clkouten ????? hfpll ? 3 ?????? 1. hfintosc ???? ?? 16 mhz hfintosc ?? 500 khz mfintosc ??? hfpll ? osctune ? ? 5-3 ?? hfintosc ?? 2. mfintosc ???? ?? 500 khz ? osctune ? ? 5-3 ?? mfintosc ?? 3. lfintosc ???? ?? 31 khz 5.2.2.1 hfintosc ?? hfintosc ???? 16 mhz ???? osctune ? ? 5-3 ?? hfintosc ?? hfintosc ??? ? 5-1 ? osccon ? ircf<3:0> ?? hfintosc ?? ?? 5.2.2.8 ? ?? ? hfintosc ?? ? hf ? osccon ? ircf<3:0> ? fosc<1:0> = 00 ? osccon ????? scs ? 1x ?? hfintosc ???? oscstat ???? hfiofr ?? hfintosc ? oscstat ?????? hfiofl ? ? hfintosc ??? 2% oscstat ????? hfiofs ?? hfintosc ??? 0.5% 5.2.2.2 mfintosc ?? mfintosc ??? ? 500 khz ???? osctune ? ? 5-3 ?? mfintosc ?? mfintosc ??? ? 5-1 ? osccon ? ircf<3:0> ? ? mfintosc 9 ?? ? 5.2.2.8 ?? ? ? mfintosc ?? ? mf ? osccon ? ircf<3:0> ? fosc<1:0> = 00 ? osccon ????? scs ? 1x oscstat ??? mfiofr ?? mfintosc ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 58 ? ? 2014 microchip technology inc. 5.2.2.3 ??? 500 khz ?????? ? osctune ? ? 5-3 hfintosc mfintosc ??? 500 khz ?? osctune ?? ????? osctune ???? 0 ?? 6 ? ???? 1fh ?????? 20h ???? osctune ??????? ??????????? ????? osctune ? lfintosc ?? lfintosc ????????? pwrt ? wdt ??a ??? ?? 5.2.2.4 lfintosc ?? lfintosc ?? 31 khz ??? lfintosc ? ? 5-1 ? osccon ? ircf<3:0> ?? 31 khz ? 5.2.2.8 ??? lfintosc ??? pwrt ? wdt ???? fscm ?? lfintosc ?? 31 khz osccon ? ircf<3:0> = 000 ????? osccon scs = 1x ????? ?? ? lf ? osccon ? ircf<3:0> ? fosc<1:0> = 00 ? osccon ????? scs ? 1x ? lfintosc ? ??? pwrt ? ?? wdt oscstat ???? lfiofr ?? lfintosc ? 5.2.2.5 frc frc ?????? 600 khz ? ? frc frc ??? ?? frc ?? 5.2.2.6 ??? ? osccon ???? ircf<3:0> ??????? 16 mhz hfintosc 500 khz mfintosc 31 khz lfintosc ????? ? 5-1 osccon ???? ircf<3:0> ???? ??? -16 mhz -8 mhz -4 mhz -2 mhz -1 mhz - 500 khz ?? - 250 khz - 125 khz - 62.5 khz - 31.25 khz - 31 khz lfintosc ? osccon ? ircf<3:0> ?? ????????????? ?????? ?????????? ???? ? ?? osccon ? ircf<3:0> ? 0111 ??? 500 khz ?? ircf ? ??
? 2014 microchip technology inc. ds40001737a_cn 59 ? pic12(l)f1612/16(l)f1613 5.2.2.7 32 mhz ??? ???? 4x pll ?? 32 mhz ?????? 8 mhz 16 mhz ?? 16 mhz pll ?? 2 ??? 32 mhz ??? ?? ? fosc ? fosc<1:0> = 00 ? intosc ?????? ? osccon ? scs scs<1:0> = 00 ? fosc<1:0> ?? ? osccon ? ircf ? 16 mhz ircf<3:0> = 1111 8 mhz hfintosc ircf<3:0> = 1110 ? osccon ? spllen 1 ? 4x pll ? pllen ? 1 osccon ? scs ? 1x ? 4x pll ?? 4x pll ? scs ? 00 5.2.2.8 ??? hfintosc mfintosc lfintosc ? ????? ? 5-3 ? osccon ? ircf<3:0> ????????? oscstat ?? hfintosc mfintosc lfintosc ?????? 1. ? osccon ? ircf<3:0> 2. ???????? 3. ???????? 4. ?????????? ?? 5. ??? 6. oscstat ??? 7. ?? ? ? 5-3 ???????? ????? 5-1 ?? ?Z 28.0 Z ? ? ?? pllen ? ? ? 4x pll 8/16 mhz hfintosc ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 60 ? ? 2014 microchip technology inc. ? 5-3 ?? hfintosc/ lfintosc ircf<3:0> ??? hfintosc/ lfintosc ircf<3:0> ??? 0 = 0 0 = 0 ? 2 ? 2 ? hfintosc/ lfintosc ? wdt hfintosc/ lfintosc ? wdt lfintosc hfintosc/ ircf<3:0> ??? = 0 0 ? 2 ? lfintosc hfintosc/mfintosc ? wdt lfintosc ? mfintosc mfintosc mfintosc mfintosc mfintosc
? 2014 microchip technology inc. ds40001737a_cn 61 ? pic12(l)f1612/16(l)f1613 5.3 ? ? osccon ????? scs ??????????? scs ??? ? fosc ??? ? ?? intosc 5.3.1 ???? scs osccon ????? scs ? cpu ???? ? osccon ? scs = 00 ???? ? fosc<1:0> ? ? osccon ? scs = 1x ???? ?? osccon ? ircf<3:0> ? ?????? osccon scs ?? ????????? 5-1 ?? 5-1 ? ? ? /por lfintosc (1) mfintosc (1) hfintosc (1) 31 khz 31.25 khz-500 khz 31.25khz-16mhz ?? t warm /por ec (1) dc ? 32 mhz 2 lfintosc ec (1) dc ? 32 mhz ?? ?? mfintosc (1) hfintosc (1) 31.25 khz-500 khz 31.25khz-16mhz 2 s ? ?? lfintosc (1) 31 khz ?? pll pll 16-32 mhz 2ms ? ? 1 pll
pic12(l)f1612/16(l)f1613 ds40001737a_cn 62 ? ? 2014 microchip technology inc. 5.4 ? ? 5-1 osccon ?? r/w-0/0 r/w-0/0 r/w-1/1 r/w-1/1 r/w-1/1 u-0 r/w-0/0 r/w-0/0 spllen ircf<3:0> ? scs<1:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 spllen pll ? pllen = 1 spllen ?? 4x pll ?? pllen = 0 1 = ? 4x pll 0 = ? 4x pll bit 6-3 ircf<3:0> ??? 1111 = 16 mhz hf 1110 = 8 mhz hf 1101 = 4 mhz hf 1100 = 2 mhz hf 1011 = 1 mhz hf 1010 = 500 khz hf (1) 1001 = 250 khz hf (1) 1000 = 125 khz hf (1) 0111 = 500 khz mf ??? 0110 = 250 khz mf 0101 = 125 khz mf 0100 = 62.5 khz mf 0011 = 31.25 khz hf (1) 0010 = 31.25 khz mf 000x = 31 khz lf bit 2 ?? ? 0 bit 1-0 scs<1:0> ???? 1x = ?? 01 = ???? 00 = fosc<1:0> ? ? 1 hfintosc ???
? 2014 microchip technology inc. ds40001737a_cn 63 ? pic12(l)f1612/16(l)f1613 ? 5-2 oscstat ??? u-0 r-0/q u-0 r-0/q r-0/q r-q/q r-0/q r-0/q ?pllr ? hfiofr hfiofl mfiofr lfiofr hfiofs bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ? bit 7 ?? ? 0 bit 6 pllr 4x pll 1 = 4x pll 0 = 4x pll bit 5 ?? ? 0 bit 4 hfiofr ?? 1 = hfintosc 0 = hfintosc bit 3 hfiofl ?? 1 = hfintosc ? 2% 0 = hfintosc ? 2% bit 2 mfiofr ?? 1 = mfintosc 0 = mfintosc bit 1 lfiofr ?? 1 = lfintosc 0 = lfintosc bit 0 hfiofs ??? 1 = hfintosc ? 0 = hfintosc ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 64 ? ? 2014 microchip technology inc. 5-2 ????? 5-3 ???? ? 5-3 osctune ?? u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? tun<5:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 tun<5:0> ?? 100000 = ? ? ? ? 111111 = 000000 = ????? 000001 = ? ? ? 011110 = 011111 = ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? osccon spllen ircf<3:0> ?scs<1:0> 62 oscstat ?pllr ? hfiofr hfiofl mfiofr lfiofr hfiofs 63 osctune ? ? tun<5:0> 64 ?? ? = ?? 0 ????? bit -/7 bit -/6 bit 13/5 bit 12/4 bit 11/3 bit 10/2 bit 9/1 bit 8/0 ? ? config1 13:8 ? ? ? ?clkouten boren<1:0> ? 48 7:0 cp mclre pwrte ? ? ? fosc<1:0> ?? ? = ?? 0 ?????
? 2014 microchip technology inc. ds40001737a_cn 65 ? pic12(l)f1612/16(l)f1613 6.0 ???? ? ?y por ? ?? bor ? ??? low-power brown-out reset lpbor ? mclr ? wdt ? reset ? ? ? ? ? ? ??? ?? v dd ??????? ? bor por ????? ? 6-1 ??????? ? 6-1 ??????? < ! t+ ! wdt cy ? _ ! lpbor ! reset ?? mclre ?,? bor y (1) pwrte lfintosc v dd icsp? 4/???e?? ?$v t$v r t+  n < rev. 10 -000 006d 1/22 /201 4 wdt 0k e_ v pp /mclr ? 1 6-1 ? bor
pic12(l)f1612/16(l)f1613 ds40001737a_cn 66 ? ? 2014 microchip technology inc. 6.1 ?y por por ?????? ? v dd ? ??????? v dd ??????? v dd ? pwrt bor mclr ? ???? 6.1.1 ??? pwrt ??? por ????? 64 ms ?? ?? pwrt ???????? pwrt ?? v dd ??? ? pwrte ???? ??? por bor ?? ???? an607 power-up trouble shooting ds00607 6.2 ?? bor v dd ????? bor ? ??? por bor ??? ??? ??? 4 ??? boren<1:0> ? 4 ???? ? bor ? ? bor ??1? ? bor ? ? bor ?? ? 6-1 borv ???? v dd ??? bor ???? v dd v bor ?? t bordc ? ? ? 6-2 6-1 bor ?? 6.2.1 bor ? ? boren ? 11 ? bor ? ???? bor v dd bor ??? bor ? bor ??? 6.2.2 bor ??1? ? boren ? 10 ??? ? bor ???? bor v dd bor ??? bor ?????? bor ?? 6.2.3 ? bor ? boren ? 01 ? bor ? borcon ? sboren ?? bor v dd ???? bor bor ?? bor ?? borcon ? borrdy ?? bor ??? boren<1:0> sboren ?? bor ?? ??? por ???? 11 x x ? bor (1) borrdy = 1 10 x ? bor borrdy = 1 ? 01 1 x ? bor (1) borrdy = 1 0 x ? ? borrdy = x 00 x x ? ? 1 ? por ?? ?????? cpu ???? ? bor ? 1 borrdy = 1 ? bor ? boren<1:0> ??
? 2014 microchip technology inc. ds40001737a_cn 67 ? pic12(l)f1612/16(l)f1613 ? 6-2 ?? 6.3 ? bor ? 6-1 borcon ???? r/w-1/u r/w-0/u u-0 u-0 u-0 u-0 u-0 r-q/u sboren borfs ? ? ? ? ? borrdy bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 sboren ??? boren<1:0> = 01 1 = ? bor 0 = ? bor boren<1:0> 01 sboren ? / bor ? bit 6 borfs ??? (1) boren<1:0> = 10 ???? boren<1:0> = 01 ? 1 = ??? / / 0 = ???? boren<1:0> = 11 ? boren<1:0> = 00 ??? borfs ? / ?? bit 5-1 ?? ? 0 bit 0 borrdy ????? 1 = ??? 0 = ??? ? 1 boren<1:0> ?? t pwrt (1) v bor v dd ? v bor v dd ? t pwrt (1) < t pwrt t pwrt (1) v bor v dd ? ? 1 pwrte ? 0 ?? t pwrt ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 68 ? ? 2014 microchip technology inc. 6.4 ??? lpbor ??? lpbor ??? bor v dd ?????? ?????? ?? bor ????? bor pcon bor ?? bor lpbor ? 6-2 lpbor ?? v lpbor ? bor v bor ?????? lpbor lpbor ? bor ?? boren = 00 ???? boren = 10 ?? lpbor ?? ? 6-1 6.4.1 ? lpbor lpbor ? lpbor ? lpbor ???? 6.5 mclr mclr ?????? mclr ? mclre lvp 6-2 6.5.1 mclr ? ? mclr ??????? ?? mclr ?? v dd ? mclr ???? ??^ 6.5.2 mclr ? mclr ?????? ?? 12.3 ? porta 6.6 ?? wdt ???? clrwdt ???? ????? status ? to pd ?????? wdt pcon ? wdtwv ? ??? wdt ? 9.0 ??? wdt 6.7 reset ? reset ? pcon ? ri ? 0 ? reset ??? 6-4 6.8 ? / y ??? pcon ? stkovf stkunf ?? ? stvren 1 ??? 3.4.2 ? / y 6.9 ??? ???????? por ? ? 6.10 ??? ??? bor por ??? ????? v dd ? ??? ???? pwrte ? 6.11 por bor ????? ??? 1. ??? ?? 2. mclr ?? ?? ?????? ? 5.0 ?B ??? mclr ?? mclr ????????? mclr ???? 10 f osc ??? ? 6-3 ??? ????? 6-2 mclr mclre lvp mclr 00 ? 10 ? x1 ? ? ? mclr ???
? 2014 microchip technology inc. ds40001737a_cn 69 ? pic12(l)f1612/16(l)f1613 ? 6-3 "? 1 ? g? fosc js a,x 10 t fosc
< a??;> -?? f?95 < pwrten = 1  ieso = 1 -?;> (1) f?95 < pwrten = 0  ieso = 1 f?95 < 95 t+ n < yf?95 < -?;> (1) f?95 < pwrten = 1  ieso = 0 -?;> (1) f?95 < pwrten = 0  ieso = 0 f?95 < 95 (1) t ost t pwrt t ost v dd yf? por yf?! mclr f osc ??;> t+ n < v dd yf? por f?js? ec ??? pwrten = 0 yf?! mclr f osc ??;> f?js? ec ? t+ n < f?js? ec ??? pwrten = 1 -?;> (1) -?;> (1) t pwrt yf?95 < -?;> (1) yf?95 < pwrten = 0 yf?95 < pwrten = 1 -?;> (1) t pwrt v dd yf? por yf?! mclr f osc ??;> t+ n < rev. 10-000032a 7/30/2013
pic12(l)f1612/16(l)f1613 ds40001737a_cn 70 ? ? 2014 microchip technology inc. 6.12 ?? ???? status pcon ?? ???? 6-3 6-4 ?? 6-3 ??? 6-4 ?? stkovf stkunf rwdt rmclr ri por bor to pd 001110x11 ?y 001110x0x ?? por ? to 1 001110xx0 ?? por ? pd 1 00u11u011 ?? uu0uuuu0u wdt uuuuuuu00 wdt ?? uuuuuuu10 ??? uuu0uuuuu ? mclr uuu0uuu10 ? mclr uuuu0uuuu ? reset ? 1uuuuuuuu ?y stvren = 1 u1uuuuuuu ?y stvren = 1 status ? pcon ? ?y 0000h ---1 1000 00-- 110x ? mclr 0000h ---u uuuu uu-- 0uuu ? mclr 0000h ---1 0uuu uu-- 0uuu wdt 0000h ---0 uuuu uu-- uuuu wdt ?? pc + 1 ---0 0uuu uu-- uuuu ?? 0000h ---1 1uuu 00-- 11u0 ??? pc + 1 (1) ---1 0uuu uu-- uuuu ? reset ? 0000h ---u uuuu uu-- u0uu ?y stvren = 1 0000h ---u uuuu 1u-- uuuu ?y stvren = 1 0000h ---u uuuu u1-- uuuu ?? u = ? x = ? - = ?? 0 ? 1 ??? gie 1 ?????? pc + 1 pc ? 0004h
? 2014 microchip technology inc. ds40001737a_cn 71 ? pic12(l)f1612/16(l)f1613 6.13 ? pcon ? ? pcon ???? ? ? ?y por ? ?? bor ? reset ?? ri ? mclr rmclr ? ?? rwdt ? ?y stkunf ? ?y stkovf pcon ? ? 6-2 ? 6.14 ?? ? 6-2 pcon ??? r/w/hs-0/q r/w/hs-0/q r/w/hc-1/ q r/w/hc-1/q r/w/hc-1/q r/w/h c-1/q r/w/hc-q/u r/w/hc-q/u stkovf stkunf wdtwv rwdt rmclr ri por bor bit 7 bit 0 ?? hc = ? hs = ? 1 r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 stkovf ?? 1 = ?? 0 = ??? bit 6 stkunf ?? 1 = ?? 0 = ??? bit 5 wdtwv wdt ? 1 = wdt ?? 1 0 = wdt ??????? clrwdt ? ?? bit 4 rwdt ??? 1 = ???? 1 0 = ??? ?? bit 3 rmclr mclr ? 1 = mclr ?? 1 0 = mclr ?? bit 2 ri reset ?? 1 = ? reset ??? 1 0 = ? reset ? ?? bit 1 por ?y?? 1 = ?y 0 = ?y ?y 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 72 ? ? 2014 microchip technology inc. 6-5 ???? 6-6 ??? bit 0 bor ???? 1 = ?? 0 = ?? ?y?? 1 ? 6-2 pcon ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? borcon sboren borfs ? ? ? ? ? borrdy 67 pcon stkovf stkunf wdtwv rwdt rmclr ri por bor 71 status ? ? ?to pd z dc c 19 wdtcon0 ? ? wdtps<4:0> sen 95 ?? ? = ?? 0 ??? ? 1 ?? mclr ??? bit -/7 bit -/6 bit 13/5 bit 12/4 bit 11/3 bit 10/2 bit 9/1 bit 8/0 ? ? config1 13:8 ? ? ? ? clkouten boren<1:0> ? 48 7:0 cp mclre pwrte ? ? ? fosc<1:0> config2 13:8 ? ? lvp debug lpbor borv stvren pllen 49 7:0 zcddis ? ? ? ? ? wrt<1:0> config3 13:8 ? ? wdtccs<2:0> wdtcws<2:0> 50 7:0 ? wdte<1:0> wdtcps<4:0> ?? ? = ?? 0 ???
? 2014 microchip technology inc. ds40001737a_cn 73 ? pic12(l)f1612/16(l)f1613 7.0 ???????? ?????? ? mcu ??? ??? ? ? ? ? ? ? ? int ? ?? ???? ? 7-1 ??? ? 7-1 ? tmr0if tmr0ie intf inte iocif iocie  cpu ,x?
?gf ?vp?b?,???? gie ? tmr1if ? pir1<0> pirn<7> peie ? tmr1ie ? pie1<0> a?? pien<7> rev. 10-000010a 7/30/2013
pic12(l)f1612/16(l)f1613 ds40001737a_cn 74 ? ? 2014 microchip technology inc. 7.1 ? ????? 1 ?? ? intcon ? gie ? ??? ? intcon ? peie ? pie1 pie2 pie3 ? intcon pir1 pir2 pir3 ???? ?? gie peie ??? ?????? 1 ?? gie 1 ? ? ???? ? gie ? pc ????? ? ?????? 7.5 ?? ? 0004h ? pc ? interrupt service routine isr ????????? isr ? ????? gie ?? isr ??????? ???? ?????????? ?? gie 1 retfie ?? isr ?????? 7.2 ? ?????? ??? ???? 3 4 ?? ???? 3 5 ??? ???? ? 7-2 ? 7-3 ? 1 ????? ?? 1 2 gie ?? gie ???? gie 1 ???
? 2014 microchip technology inc. ds40001737a_cn 75 ? pic12(l)f1612/16(l)f1613 ? 7-2 ? q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 fosc clkr pc 0004h 0005h pc inst(0004h) nop gie q1 q2 q3 q4 q1 q2 q3 q4 pc ?? pc inst(0004h) nop pc ?? fsr addr pc+1 pc+2 0004h 0005h pc inst(0004h) nop gie pc pc-1 pc ? ? inst(pc) q1 ? ? inst(pc) pc-1 pc+1 nop pc pc/ pc+1 0005h pc-1 pc+1/fsr addr 0004h nop gie inst(pc) nop nop fsr addr pc+1 pc+2 0004h 0005h pc inst(0004h) nop gie pc pc-1 pc ? inst(pc) nop nop nop inst(0005h) ? ? ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 76 ? ? 2014 microchip technology inc. ? 7-3 int ? q2 q1 q3 q4 q2 q1 q3 q4 q2 q1 q3 q4 q2 q1 q3 q4 q2 q1 q3 q4 f osc clkout int intf gie ? pc ?? ?? ? pc pc + 1 pc + 1 0004h 0005h inst (0004h) inst (0005h) ?? nop inst (pc) inst (pc + 1) inst (pc ? 1) inst (0004h) ?? nop inst (pc) ? ? 1 ?? intf ? ? q1 ? 2 ??? 3-5 t cy ??? 3-4 t cy t cy ????? inst (pc) ? ?????? 3 int ? 28.0 Z ?Z 4 q1-q4 ??? intf 1 (1) (2) (3) (4) (1)
? 2014 microchip technology inc. ds40001737a_cn 77 ? pic12(l)f1612/16(l)f1613 7.3 ? ??????? ??????1 ??????? 1 ??? gie ? 1 ? ? sleep ? ? sleep ???? isr ???? 8.0 ?? ? 7.4 int int ?????? intcon ? inte 1 ? option_reg ? intedg ?? ? intedg 1 ??? intedg ???? intcon ? intf int ?? 1 gie inte ? 1 ??? ? 7.5 ?? ? pc ?????? ??????? ? w ? ? status ? to pd ? ? bsr ? ? fsr ? ? pclath ? ?????? isr ??????? ????????? ?? isr ?????? bank 31 ?????? ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 78 ? ? 2014 microchip technology inc. 7.6 ??? ? 7-1 intcon ??? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r-0/0 gie (1) peie (2) tmr0ie inte iocie tmr0if intf iocif (3) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 gie ?? (1) 1 = 0 = ? bit 6 peie ? (2) 1 = 0 = ? bit 5 tmr0ie timer0 ? 1 = timer0 0 = ? timer0 bit 4 inte int ?? 1 = int ? 0 = ? int ? bit 3 iocie ?? 1 = ? 0 = ?? bit 2 tmr0if timer0 ?? 1 = tmr0 ? 0 = tmr0 ? bit 1 intf int ??? 1 = int ? 0 = int ? bit 0 iocif ??? (3) 1 = ?????? 0 = ??????? ? 1 ????? gie intcon ??? ?? 1 ????????? 2 ? intcon ? peie 1 ?? 3 iocif ?? iocxf ??????
? 2014 microchip technology inc. ds40001737a_cn 79 ? pic12(l)f1612/16(l)f1613 ? 7-2 pie1 ? 1 r/w-0/0 r/w-0/0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 tmr1gie timer1 ?? 1 = timer1 ??? 0 = ? timer1 ??? bit 6 adie ?? adc ? 1 = adc 0 = ? adc bit 5-3 ?? ? 0 bit 2 ccp1ie ccp1 ? 1 = ccp1 0 = ? ccp1 bit 1 tmr2ie tmr2 pr2 ?? 1 = timer2 pr2 ? 0 = ? timer2 pr2 ? bit 0 tmr1ie timer1 ? 1 = timer1 0 = ? timer1 ? ? intcon ? peie 1 ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 80 ? ? 2014 microchip technology inc. ? 7-3 pie2 ? 2 u-0 r/w-0/0 r/w-0/0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 ?c2ie (1) c1ie ? ? tmr6ie tmr4ie ccp2ie bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 ?? ? 0 bit 6 c2ie ? c2 ? (1) 1 = ? c2 0 = ?? c2 bit 5 c1ie ? c1 ? 1 = ? c1 0 = ?? c1 bit 4-3 ?? ? 0 bit 2 tmr6ie tmr6 pr6 ?? 1 = timer6 pr6 ? 0 = ? timer6 pr6 ? bit 1 tmr4ie tmr4 pr4 ?? 1 = timer4 pr4 ? 0 = ? timer4 pr4 ? bit 0 ccp2ie ccp2 ? 1 = ccp2 0 = ? ccp2 ? 1 pic16(l)f1613 2 ? intcon ? peie 1 ??
? 2014 microchip technology inc. ds40001737a_cn 81 ? pic12(l)f1612/16(l)f1613 ? 7-4 pie3 ? 3 u-0 u-0 r/w-0/0 r/w-0/0 u-0 u-0 u-0 u-0 ? ? cwgie zcdie ? ? ? ? bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5 cwgie cwg ? 1 = cwg 0 = ? cwg bit 4 zcdie zcd ? 1 = zcd 0 = ? zcd bit 3-0 ?? ? 0 ? ? intcon ? peie 1 ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 82 ? ? 2014 microchip technology inc. ? 7-5 pie4 ? 4 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 scanie crcie smt2pwaie smt2praie smt 2ie smt1pwaie smt1praie smt1ie bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 scanie ?? 1 = ? 0 = ?? bit 6 crcie crc ? 1 = crc 0 = ? crc bit 5 smt2pwaie smt2 ?? 1 = smt ? 0 = ? smt ? bit 4 smt2praie smt2 ??? 1 = smt ? 0 = ? smt ? bit 3 smt2ie smt2 ? 1 = smt 0 = ? smt bit 2 smt1pwaie smt1 ?? 1 = smt ? 0 = ? smt ? bit 1 smt1praie smt1 ??? 1 = smt ? 0 = ? smt ? bit 0 smt1ie smt1 ? 1 = smt 0 = ? smt ? ? intcon ? peie 1 ??
? 2014 microchip technology inc. ds40001737a_cn 83 ? pic12(l)f1612/16(l)f1613 ? 7-6 pir1 ? 1 r/w-0/0 r/w-0/0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 tmr1gif timer1 ??? 1 = ???? 0 = ???? bit 6 adif adc ?? 1 = ???? 0 = ???? bit 5-3 ?? ? 0 bit 2 ccp1if ccp1 ?? 1 = ???? 0 = ???? bit 1 tmr2if timer2 pr2 ??? 1 = ???? 0 = ???? bit 0 tmr1if timer1 ?? 1 = ???? 0 = ???? ? ?? ?? gie intcon ???? 1 ????? ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 84 ? ? 2014 microchip technology inc. ? 7-7 pir2 ? 2 u-0 r/w-0/0 r/w-0/0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 ?c2if (1) c1if ? ? tmr6if tmr4if ccp2if bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 ?? ? 0 bit 6 c2if ? c2 ?? (1) 1 = ???? 0 = ???? bit 5 c1if ? c1 ?? 1 = ???? 0 = ???? bit 4-3 ?? ? 0 bit 2 tmr6if timer6 pr6 ??? 1 = ???? 0 = ???? bit 1 tmr4if timer4 pr4 ??? 1 = ???? 0 = ???? bit 0 ccp2if ccp2 ?? 1 = ???? 0 = ???? ? 1 pic16(l)f1613 ? ?? ?? gie intcon ???? 1 ????? ????
? 2014 microchip technology inc. ds40001737a_cn 85 ? pic12(l)f1612/16(l)f1613 ? 7-8 pir3 ? 3 u-0 u-0 r/w-0/0 r/w-0/0 u-0 u-0 u-0 u-0 ? ?cwgifzcdif ? ? ? ? bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5 cwgif cwg ?? 1 = ???? 0 = ???? bit 4 zcdif zcd ?? 1 = ???? 0 = ???? bit 3-0 ?? ? 0 ? ?? ?? gie intcon ???? 1 ????? ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 86 ? ? 2014 microchip technology inc. ? 7-9 pir4 ? 4 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 scanif crcif smt2pwaif smt2praif smt 2if smt1pwaif smt1praif smt1if bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 scanif ??? 1 = ???? 0 = ???? bit 6 crcif crc ?? 1 = ???? 0 = ???? bit 5 smt2pwaif smt2 ??? 1 = ???? 0 = ???? bit 4 smt2praif smt2 ???? 1 = ???? 0 = ???? bit 3 smt2if smt2 ?? 1 = ???? 0 = ???? bit 2 smt1pwaif smt1 ??? 1 = ???? 0 = ???? bit 1 smt1praif smt1 ???? 1 = ???? 0 = ???? bit 0 smt1if smt1 ?? 1 = ???? 0 = ???? ? ?? ?? gie intcon ???? 1 ????? ????
? 2014 microchip technology inc. ds40001737a_cn 87 ? pic12(l)f1612/16(l)f1613 7-1 ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 option_reg wpuen intedg tmr0cs tmr0se psa ps<2:0> 183 pie1 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie 79 pie2 ?c2ie (1) c1ie ? ? tmr6ie tmr4ie ccp2ie 80 pie3 ? ? cwgie zcdie ? ? ? ? 81 pie4 scanie crcie smt2pwaie smt2praie smt2ie smt1pwaie smt1praie smt1ie 82 pir1 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if 83 pir2 ?c2if (1) c1if ? ? tmr6if tmr4if ccp2if 84 pir3 ? ? cwgif zcdif ? ? ? ? 85 pir4 scanif crcif smt2pwaif smt2praif smt2if smt1pwaif smt1praif smt1if 86 ?? ? = ?? 0 ???? ? 1 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 88 ? ? 2014 microchip technology inc. 8.0 ?? ? ?? sleep ???? ???? 1. ?? wdt wdt ? 2. status ? pd ? 3. status ? to 1 4. cpu ??? 5. 31 khz lfintosc ??? ??? 6. ? timer1 ?????? timer1 ? timer1 ??? ? lfintosc ? t1cki ? timer1 7. ?? frc adc ?? 8. i/o ??? sleep ????? ?????? 9. wdt ????? ???? ?? ?????? ? i/o ?? ? i/o ?? ? i/o ?? ? ???? ? ? 31 khz lfintosc ? ? ? hfintosc cwg ? ??????? i/o ? v dd v ss ??? fvr ?? ??? 14.0 ?? fvr 8.1 ?? ????? 1. mclr ?? ?? 2. bor ?? 3. por 4. ?? ?? 5. ? 6. ??? ?h ?????? ??????? 6.12 ?? ? sleep ???? pc + 1 ? ???? ?? gie ???? gie ?? sleep ??? gie ? ? sleep ???? ???? sleep ?????? sleep ?? nop ? ??? wdt ?? ??? 8.1.1 ?? ?? gie ???? ???? 1 ?? ?? ? ? sleep ? ?? - sleep ??? nop ?? -wdt wdt ??? -status ? to ? 1 -status ? pd ? ? ? sleep ? ?? - ? sleep ? - ?? -wdt wdt ?? -status ? to 1 -status ? pd ?? sleep ???z?? 0 ?? sleep ???? 1 ?? ?? sleep ??? pd pd 1 ? sleep ??? nop ???
? 2014 microchip technology inc. ds40001737a_cn 89 ? pic12(l)f1612/16(l)f1613 ? 8-1 ???? 8.2 ??? ???? low dropout ldo ? i/o ?? 5.5v ?? ??y???? ??? ldo ??????? ????????? ?????? vregcon vregpm 1 ??? ?? ldo ?????? 8.2.1 ??? ??????? ldo ?? ??????? ????????? ????? ?????? ????????? ????????? ??? 8.2.2 ??? ????????1 ??? ldo ?????? ?? ? ?? bor ? ?? wdt ? ? / ? ? timer1 ??? cwg hfintosc ??????? hfintosc cwg ??? hfintosc ?????????? ? 24.11 ?? q1 q2 q3 q4 q1 q2 q3 q4 q1 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 clkin (1) clkout (2) ?? gie intcon ? ?? ?? pc pc + 1 pc + 2 inst(pc) = inst(pc - 1) inst (pc + 1) ?? ? (4) inst (pc + 2) inst (pc + 1) inst (0004h) inst (0005h) inst (0004h) ?? nop pc + 2 0004h 0005h ?? nop t1 osc (3) pc + 2 ? 1 ???????? 2 ?? clkout ? 3 t1 osc 28.0 Z 4 gie = 1 ??? 0004h isr gie = 0 ??? ? pc ? pic12lf1612/16lf1613 ?? ?? pic12lf1612/16lf1613 ???? ????? v dd i/o ? pic12f1612/ 16f1613 ? 28.0 ? Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 90 ? ? 2014 microchip technology inc. 8.3 ?? 8-1 ????? ? 8-1 vregcon ??? (1) u-0 u-0 u-0 u-0 u-0 u-0 r/w-0/0 r/w-1/1 ? ? ? ? ? ?vregpm bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-2 ?? ? 0 bit 1 vregpm ???? 1 = ?????? (2) ?????? 0 = ???? (2) ???????? bit 0 ? 1 ? 1 ? 1 pic12f1612/16f1613 2 28.0 Z bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 iocaf ? ? iocaf5 iocaf4 iocaf3 iocaf2 iocaf1 iocaf0 143 iocan ? ? iocan5 iocan4 iocan3 iocan2 iocan1 iocan0 143 iocap ? ? iocap5 iocap4 iocap3 iocap2 iocap1 iocap0 143 ioccp ? ? ioccp5 ioccp4 ioccp3 ioccp2 ioccp1 ioccp0 144 ioccn ? ? ioccn5 ioccn4 ioccn3 ioccn2 ioccn1 ioccn0 144 ioccf ? ? ioccf5 ioccf4 ioccf3 ioccf2 ioccf1 ioccf0 144 pie1 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie 79 pie2 ?c2ie (1) c1ie ? ? tmr6ie tmr4ie ccp2ie 80 pie3 ? ?cwgiezcdie ? ? ? ? 81 pie4 scanie crcie smt2pwaie smt2praie smt2ie smt1pwaie smt1praie smt1ie 82 pir1 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if 83 pir2 ?c2if (1) c1if ? ? tmr6if tmr4if ccp2if 84 pir3 ? ? cwgif zcdif ? ? ? ? 85 pir4 scanif crcif smt2pwaif smt2praif smt2if smt1pwaif smt1praif smt1if 86 status ? ? ?to pd z dc c 19 wdtcon0 ? ? wdtps<4:0> sen 95 ?? ? = ??? 0 ??2??? ? 1 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 91 ? pic12(l)f1612/16(l)f1613 9.0 ??? wdt ?? wdt ????? ??? clrwdt ???? ??????? ??? wdt ????? ????? clrwdt ?? ?? wdt ? ? ??? ? ??? -wdt ? -wdt ??1? -wdt ? -wdt ?? ? ??? 1 ms 256s ? ? ????? 12.5% 100% ? ? ? ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 92 ? ? 2014 microchip technology inc. ? 9-1 ??? rev. 10 -000 162a 1/2/201 4 window clrwdt reset wdt cy wdt 0k e_ wdtps 5! wdtaud < $v? j?, < 18!nxne aud < 000 011 010 001 100 101 110 111 +- +- +- +- +- +- mfintosc/16 lfintosc r r wdtcs wwdt %?# 0k ?? !ew < 0k gk e wdte<1:0> = 01 wdte<1:0> = 11 wdte<1:0> = 10 sen ?,?
? 2014 microchip technology inc. ds40001737a_cn 93 ? pic12(l)f1612/16(l)f1613 9.1 ?? wdt ? wdtccs<2:0> wdtcon0 wdtcs<2:0> ? 31 khz lfintosc 31.25 khz mfintosc ?? ? 1 ms ? lfintosc mfintosc ?? 28.0 Z 9.2 wdt ?? ??? 4 ????? wdte<1:0> ? 9-1 9.2.1 wdt ? ? wdte ? 11 ? wdt ? wdt ? 9.2.2 wdt ??1? ? wdte ? 10 ??? ? wdt wdt ? 9.2.3 wdt ? ? wdte ? 01 ? wdt ? wdtcon0 ? sen ?? wdt ??? ?? 9-1 9-1 wdt ?? 9.3 ? wdtcon0 ? wdtps ? 1 ms 256 ????????? ?? 2 ? 9.4 ? ???????? wdtcws<2:0> wdtcon1 ? window<2:0> ???? clrwdt ? wdt ?????? clrwdt ???? wdt wdt ?? ? 9-2 ?? ? wdtcws<2:0> wdtcon1 window<2:0> ? wdtcws<2:0> = 111 ? pcon ? wdtwv ? por ? 1 ? ? 1 9.5 wdt ? wdt ? ? ?? ? ? clrwdt ? ? ?? ? ?? ? wdt ? ? ? ost 9.5.1 clrwdt ? ?? ???? wdt ? clrwdt ? ????? wdtcon0 ? ???? clrwdt ? ? ? 9-2 9.6 ?? ??? wdt ??? wdt ?a wdt ? ??? wdt ??? wdt ???? ost ???? ost ?? 5.0 ?B ?? wdt ?? ?? status ? to pd ??????? ? pcon ? rwdt ? 3.0 wdte<1:0> sen ?? wdt ?? 11 x x 10 x ? 01 1 x 0 x ? 00 x x ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 94 ? ? 2014 microchip technology inc. ? 9-2 ?? 9-2 wdt wdt wdte<1:0> = 00 wdte<1:0> = 01 sen = 0 wdte<1:0> = 10 ?? clrwdt ? ? + ??? = t1osc extrc intosc extclk ? + ??? = xt hs lp ?? ost ? intosc ? ircf ? rev. 10 -000 163a 11 /8/201 3 0k
< clrwdt ?? ?jawdt!? 0k  ? ?6? *0k e_? 0k gk 0k '? cy_ clrwdt ?
? 2014 microchip technology inc. ds40001737a_cn 95 ? pic12(l)f1612/16(l)f1613 9.7 ???? ? 9-1 wdtcon0 ???? 0 u-0 u-0 r/w (3) -q/q (2) r/w (3) -q/q (2) r/w (3) -q/q (2) r/w (3) -q/q (2) r/w (3) -q/q (2) r/w-0/0 ? ? wdtps<4:0> (1) sen bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-6 ?? ? 0 bit 5-1 wdtps<4:0> ????? (1) ? = ?? 11111 = ? 1:32 ? ? ? 10011 = ? 1:32 10010 = 1:8388608 2 23 ??? 256s 10001 = 1:4194304 2 22 ??? 128s 10000 = 1:2097152 2 21 ??? 64s 01111 = 1:1048576 2 20 ??? 32s 01110 = 1:524288 2 19 ??? 16s 01101 = 1:262144 2 18 ??? 8s 01100 = 1:131072 2 17 ??? 4s 01011 = 1:65536 ??? 2s ? 01010 = 1:32768 ??? 1s 01001 = 1:16384 ??? 512 ms 01000 = 1:8192 ??? 256 ms 00111 = 1:4096 ??? 128 ms 00110 = 1:2048 ??? 64 ms 00101 = 1:1024 ??? 32 ms 00100 = 1:512 ??? 16 ms 00011 = 1:256 ??? 8 ms 00010 = 1:128 ??? 4 ms 00001 = 1:64 ??? 2 ms 00000 = 1:32 ??? 1 ms bit 0 sen ??? / ? wdte<1:0> = 1x ? wdte<1:0> = 01 1 = wdt 0 = wdt ? wdte<1:0> = 00 ? ? 1 ??? wdt ? 31 khz lfintosc 2 config3 wdtcps <4:0> = 11111 ? wdtps<4:0> ??? 01011 wdtps<4:0> ?? config3 wdtcps<4:0> 3 config3 wdtcps <4:0> 11111 ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 96 ? ? 2014 microchip technology inc. ? 9-2 wdtcon1 ???? 1 u-0 r/w (3) -q/q (1) r/w (3) -q/q (1) r/w (3) -q/q (1) u-0 r/w (4) -q/q (2) r/w (4) -q/q (2) r/w (4) -q/q (2) ? wdtcs<2:0> ? window<2:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 ?? ? 0 bit 6-4 wdtcs<2:0> ???? 111 = ? ? ? 010 = 001 = mfintosc 31.25 khz 000 = lfintosc 31 khz bit 3 ?? ? 0 bit 2-0 window<2:0> ??? ? 1 config3 wdtccs <2:0> = 111 wdtcs<2:0> ??? 000 2 window<2:0> ?? config3 ? wdtcws<2:0> ? 3 config3 wdtccs<2:0> 111 ?? 4 config3 wdtcws<2:0> 111 ?? window<2:0> ? ??? ??? ??? 111 n/a 100 110 12.5 87.5 101 25 75 100 37.5 62.5 011 50 50 010 62.5 37.5 001 75 25 000 87.5 12.5
? 2014 microchip technology inc. ds40001737a_cn 97 ? pic12(l)f1612/16(l)f1613 ? 9-3 wdtpsl wdt ?????? ? r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 pscnt<7:0> (1) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 pscnt<7:0> ???? (1) ? 1 18 wdt ??? pscnt<17:0> wdtpsl wdtpsh wdttmr ?? pscnt<17:0> ? ?? ? 9-4 wdtpsh wdt ?????? ? r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 pscnt<15:8> (1) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 pscnt<15:8> ???? (1) ? 1 18 wdt ??? pscnt<17:0> wdtpsl wdtpsh wdttmr ?? pscnt<17:0> ? ?? ? 9-5 wdttmr wdt ?? ? r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 r-0/0 wdttmr<3:0> state pscnt<17:16> (1) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-3 wdttmr<4:0> ??? bit 2 state wdt ?? 1 = wdt ? 0 = wdt bit 1-0 pscnt<17:16> ???? (1) ? 1 18 wdt ??? pscnt<17:0> wdtpsl wdtpsh wdttmr ?? pscnt<17:0> ? ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 98 ? ? 2014 microchip technology inc. 9-3 ?????? 9-4 ????? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? osccon spllen ircf<3:0> ?scs<1:0> 62 pcon stkovf stkunf wdtwv rwdt rmclr ri por bor 71 status ? ? ?to pd z dc c 19 wdtcon0 ? ? wdtps<4:0> sen 95 wdtcon1 ? wdtcs<2:0> ? window<2:0> 96 wdtpsl pscnt<7:0> 97 wdtpsh pscnt<15:8> 97 wdttmr ? wdttmr<4:0> state pscnt<17:16> 97 ?? x = ? u = ? ? = ?? 0 ????? bit -/7 bit -/6 bit 13/5 bit 12/4 bit 11/3 bit 10/2 bit 9/1 bit 8/0 ? ? config1 13:8 ? ? ? ? clkouten boren<1:0> ? 48 7:0 cp mclre pwrte ? ? ? fosc<1:0> config3 13:8 ? ? wdtccs<2:0> wdtcws<2:0> 50 7:0 ?wdte<1:0> wdtcps<4:0> ?? ? = ?? 0 ?????
? 2014 microchip technology inc. ds40001737a_cn 99 ? pic12(l)f1612/16(l)f1613 10.0 v dd ??? ??????? sfr ???? sfr ? pmcon1 ? pmcon2 ? pmdatl ? pmdath ? pmadrl ? pmadrh ?? pmdath:pmdatl ?? ?? 14 / ? pmadrh:pmadrl ??? 15 ??? ?? ????? / ??? ??????? ??? ? cp ?? wrt<1:0> ? cp = 0 (1) ??? ? ?????? ?? ? id ? wrt<1:0> ??? ?? ? 10.1 pmadrl pmadrh ? pmadrh:pmadrl ??? 16k ?? ????? msb pmadrh ? lsb pmadrl ? 10.1.1 pmcon1 pmcon2 ? pmcon1 ???? rd wr ?? ? 1 ???? ??? wr ?? ?? wren 1 ??? wren ?????? wrerr 1 ?? wrerr ??? pmcon2 ???? pmcon2 ? ? 0 ???? pmcon2 ? ??? ? ???? 10.2 ?????? ????? 14 ?? ??? ?????????? ????? 14 ???? ? pmdath:pmdatl ?? ? ?? 10-1 ? 1 ??? ? cp ?? ? ??????? ?????? ? ram ???? ???? ??? ?????? ?g? ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 100 ? ? 2014 microchip technology inc. 10.2.1 ? ????? 1. ? pmadrh:pmadrl ?? 2. pmcon1 ? cfgs ? 3. ??? pmcon1 ?? rd 1 ? 1 ??? ??? ?? bsf pmcon1,rd ?????????? pmdath:pmdatl ????? ????? pmdath:pmdatl ????? ????? ? 10-1 ? 10-1 ? ? pic12(l)f1612 16 16 pic16(l)f1613 ? ?? nop ??? rd 1 ? ???? ?? a??0 ey?/?cg!5b,| < ? cfgs ? ey?+   ? pmadrh:pmadrl ?
|a??0 ? rd = 1 ? ?+9 a,x?? 
;> nop )? pmdath:pmdatl a? adb ?+9 a,x?? 
;> nop 43 a??0 rev. 10-000046a 7/30/2013
? 2014 microchip technology inc. ds40001737a_cn 101 ? pic12(l)f1612/16(l)f1613 ? 10-2 ?? 10-1 ? q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 q1 q2 q3 q4 bsf pmcon1,rd ?? instr(pc + 1) ?? pc pc + 1 pmadrh,pmadrl pc+3 pc + 5 ? rd pmdath,pmdatl pc + 3 pc + 4 instr(pc + 1) instr(pc - 1) ?? instr(pc + 3) ?? instr(pc + 4) ?? pmdath pmdatl ? instr (pc) instr(pc + 3) instr(pc + 4) ?? ? nop instr(pc + 2) ?? ?? ? nop * this code block will read 1 word of program * memory at the memory address: prog_addr_hi :prog_addr_lo * data will be returned in the variables; * prog_data_hi, prog_data_lo banksel pmadrl ; select bank for pmcon registers movlw prog_addr_lo ; movwf pmadrl ; store lsb of address movlw prog_addr_hi ; movwf pmadrh ; store msb of address bcf pmcon1,cfgs ; do not select configuration space bsf pmcon1,rd ; initiate read nop ; ignored ( figure 10-2 ) nop ; ignored ( figure 10-2 ) movf pmdatl,w ; get lsb of word movwf prog_data_lo ; store in user location movf pmdath,w ; get msb of word movwf prog_data_hi ; store in user location
pic12(l)f1612/16(l)f1613 ds40001737a_cn 102 ? ? 2014 microchip technology inc. 10.2.2 ??? ????? ???2?? ? ? ? ? ?? ? ?? id 2s 1. 55h pmcon2 2. aah pmcon2 3. pmcon1 wr 1 4. nop ? 5. nop ? wr 1 ?????? nop ? ?????? ?? 2 ms ????? ???? ???? nop ??? ???? ?????? ????????? ?? ? 10-3 ? ?? ?j?c? 43 ?j?c?  0x55 m9 pmcon2  0xaa m9 pmcon2
|mol8?0 ? wr = 1 ? ?+9 a,x?? 
;> nop ?+9 a,x?? 
;> nop rev. 10-000047a 7/30/2013
? 2014 microchip technology inc. ds40001737a_cn 103 ? pic12(l)f1612/16(l)f1613 10.2.3 ?????? ??2s 1. ???? pmadrh:pmadrl ?? 2. pmcon1 ? cfgs ? 3. pmcon1 ? free wren 1 4. pmcon2 55h ? aah ? 5. pmcon1 ?? wr 1 ?? 10-2 ? bsf pmcon1,wr ????? ?? wr 1 ?? nop ??? 2 ms ?????????? ???? pmcon1 ???? ? 10-4 ? ?? ol8?0 43 ol8?0 /u!6? ? gie = 0 ? 4?? ai%   cfgs  ey?ol8?0 ? free = 1 ? ey?>   ? pmadrh:pmadrl ? s6?mol8?0 ? wren = 1 ? ?j?c? ???"? 1 ? g??a?? ? gie = 1 ? /u!6mol8?0 ? wren = 0 ? ol8?0`? cpu v0 ?l _ 2 ms ? rev. 10-000048a 7/30/2013 ? 1 ? 10-3
pic12(l)f1612/16(l)f1613 ds40001737a_cn 104 ? ? 2014 microchip technology inc. 10-2 ? ; this row erase routine assumes the following: ; 1. a valid address within the erase row is loaded in addrh:addrl ; 2. addrh and addrl are located in shared data memory 0x70 - 0x7f (common ram) bcf intcon,gie ; disable ints so required sequences will execute properly banksel pmadrl movf addrl,w ; load lower 8 bits of erase address boundary movwf pmadrl movf addrh,w ; load upper 6 bits of erase address boundary movwf pmadrh bcf pmcon1,cfgs ; not configuration space bsf pmcon1,free ; specify an erase operation bsf pmcon1,wren ; enable writes movlw 55h ; start of required sequence to initiate erase movwf pmcon2 ; write 55h movlw aah ; movwf pmcon2 ; write aah bsf pmcon1,wr ; set wr bit to begin erase nop ; nop instructions are forced as processor starts nop ; row erase of program memory. ; ; the processor stalls until the erase process is complete ; after erase processor continues with 3rd instruction bcf pmcon1,wren ; disable writes bsf intcon,gie ; enable interrupts
? 2014 microchip technology inc. ds40001737a_cn 105 ? pic12(l)f1612/16(l)f1613 10.2.4 ? ???2s 1. ????? pmadrh:pmadrl 2. ??? 3. ? 4. ? 1 3 ??? ??????? ?????? ??? ?????? ?? ? 10-5 ? 16 ? ? pmadrh:pmadrl 11 pmadrh<6:0>:pmadrl<7:4> ? ? pmadrl ? 4 pmadrl<3:0> ?????? ????? 0x3fff ??????? 2??? lwlo = 1 ?y pmdath:pmdatl ????? ?? lwlo ?? ? ?? 1. pmcon1 ? wren 1 2. pmcon1 ? cfgs ? 3. pmcon1 ? lwlo 1 pmcon1 ? lwlo ? 1 ? ?? ?? 4. ?????? pmadrh:pmadrl ?? 5. ??? pmdath:pmdatl ?? 6. ?? 10.2.2 ? ?? 7. pmadrh:pmadrl ?? ??? ?? 8. ? 5 7 ?? ????? 9. pmcon1 ? lwlo ? pmcon1 ? lwlo ? 0 ?? 10. ??? pmdath:pmdatl ?? 11. ?? 10.2.2 ? ?? 10-3 ?????? pmadrh:pmadrl ?????? ?? ? ???? ???? ????? ? ?? ????? 0x3fff ??? ????? ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 106 ? ? 2014 microchip technology inc. ? 10-5 ? 16 ? 6 8 14 14 14 mj?, < #15 0fh 14 14 /?c,| <mj?, < 14 14 14 pmadrh<6:0>: pmadrl<7:4> k?,/?c,| < > >   a-?   mj?, < #14 0eh mj?, < #1 01h mj?, < #0 00h       000h 000fh 000eh 0000h 0001h 001h 001fh 001eh 0010h 0011h 002h 002fh 002eh 0020h 0021h 7feh 7fefh 7feeh 7fe0h 7fe1h 7ffh 7fffh 7ffeh 7ff0h 7ff1h 14 pmadrl<3:0> 800h 800ah - 801fh 8000h - 8003h g!5b+ * id 0 - 3 8007h C 8009h 8006h < id +- +- g!5b,| < cfgs = 0 cfgs = 1 pmadrh pmadrl 7 6 0 7 4 3 0 c3 c2 c1 c0 r9 r8 r7 r6 r5 r4 r3 - r1 r0 r2 pmdath pmdatl 7 5 0 7 0 - - 8004h 4 11 ra rev. 10 -000 004c 11 /13 /201 3 }-? / ( id 8005h
? 2014 microchip technology inc. ds40001737a_cn 107 ? pic12(l)f1612/16(l)f1613 ? 10-6 ? ?? m?0 2 ? ?t m?0`? cpu v0 ?l _ 2 ms ? m9/?c,| < j?, <"uy ?n?um9/?cg!5b ,| <,x+d?a1+d 6?cy?!> ,x+d? ? word_cnt ? m9? a ?t+? /u!6? ? gie = 0 ? ey?/?cg!5b,| < ? cfgs ? ey?>   ? pmadrh:pmadrl ? ey?m?0 ? free = 0 ? ?>?9mj?, < ? lwlo = 1 ? s6?m / ol8?0 ? wren = 1 ? >?9mj?, < ? pmdath:pmdatl ? ?+aud < ? word_cnt-- ? e?r   ? pmadrh:pmadrl++ ? j?, <y?m9k?, ? lwlo = 0 ? ?j?c? ???"? 1 ? /u!6m / ol8?0 ? wren = 0 ? g??a?? ? gie = 1 ?  rev. 10-000049a 7/30/2013 ?j?c? ???"? 1 ? ? 1 ? 10-3
pic12(l)f1612/16(l)f1613 ds40001737a_cn 108 ? ? 2014 microchip technology inc. 10-3 ? 16 ; this write routine assumes the following: ; 1. 64 bytes of data are loaded, starting at the address in data_addr ; 2. each word of data to be written is made up of two adjacent bytes in data_addr, ; stored in little endian format ; 3. a valid starting address (the least significant bits = 00000) is loaded in addrh:addrl ; 4. addrh and addrl are located in shared data memory 0x70 - 0x7f (common ram) ; bcf intcon,gie ; disable ints so required sequences will execute properly banksel pmadrh ; bank 3 movf addrh,w ; load initial address movwf pmadrh ; movf addrl,w ; movwf pmadrl ; movlw low data_addr ; load initial data address movwf fsr0l ; movlw high data_addr ; load initial data address movwf fsr0h ; bcf pmcon1,cfgs ; not configuration space bsf pmcon1,wren ; enable writes bsf pmcon1,lwlo ; only load write latches loop moviw fsr0++ ; load first data byte into lower movwf pmdatl ; moviw fsr0++ ; load second data byte into upper movwf pmdath ; movf pmadrl,w ; check if lower bits of address are '00000' xorlw 0x0f ; check if we're on the last of 16 addresses andlw 0x0f ; btfsc status,z ; exit if last of 16 words, goto start_write ; movlw 55h ; start of required write sequence: movwf pmcon2 ; write 55h movlw aah ; movwf pmcon2 ; write aah bsf pmcon1,wr ; set wr bit to begin write nop ; nop instructions are forced as processor ; loads program memory write latches nop ; incf pmadrl,f ; still loading latches increment address goto loop ; write next latches start_write bcf pmcon1,lwlo ; no more loading latches - actually start flash program ; memory write movlw 55h ; start of required write sequence: movwf pmcon2 ; write 55h movlw aah ; movwf pmcon2 ; write aah bsf pmcon1,wr ; set wr bit to begin write nop ; nop instructions are forced as processor writes ; all the program memory write latches simultaneously nop ; to program memory. ; after nops, the processor ; stalls until the self-write process in complete ; after write processor continues with 3rd instruction bcf pmcon1,wren ; disable writes bsf intcon,gie ; enable interrupts
? 2014 microchip technology inc. ds40001737a_cn 109 ? pic12(l)f1612/16(l)f1613 10.3 ? ??????? ????? ram ????2s 1. ?????? 2. ?? ram 3. ? ram ???? ? 4. ????? 5. 6. ? ram ?? 7. ? ? 10-7 ?? ? ?? a ?0 43 a ?0 a??0 ???"? 1 ? h> a??0,xk0 ?no,| ram  ol8?0 ???"? 2 ? a k0 ?ua ,x+ ram k0e>  s* ram k0 e> m?0 ???"? 3 ? rev. 10-000050a 7/30/2013 ? 1 ? 10-2 2 ? 10-4 3 ? 10-5
pic12(l)f1612/16(l)f1613 ds40001737a_cn 110 ? ? 2014 microchip technology inc. 10.4 ? id id ? pmcon1 ? cfgs = 1 ??? ? id id/ id ??? pc<15> = 1 ???? ????? ???? 10-2 10-2 ???? pmdath:pmdatl ???? 0 10-2 ? id id ? cfgs = 1 10-4 ? id ? 8000h-8003h ? id 8006h/8005h id/ id ? 8007h-8009h 1 2 3 ? * this code block will read 1 word of program memory at the memory address: * prog_addr_lo (must be 00h-08h) data will be returned in the variables; * prog_data_hi, prog_data_lo banksel pmadrl ; select correct bank movlw prog_addr_lo ; movwf pmadrl ; store lsb of address clrf pmadrh ; clear msb of address bsf pmcon1,cfgs ; select configuration space bcf intcon,gie ; disable interrupts bsf pmcon1,rd ; initiate read nop ; executed (see figure 10-2 ) nop ; ignored (see figure 10-2 ) bsf intcon,gie ; restore interrupts movf pmdatl,w ; get lsb of word movwf prog_data_lo ; store in user location movf pmdath,w ; get msb of word movwf prog_data_hi ; store in user location
? 2014 microchip technology inc. ds40001737a_cn 111 ? pic12(l)f1612/16(l)f1613 10.5 ? ????? ?????? ???? ram ????? ? 10-8 ? ?? ?p`?0 a1/?ca?m9db,x? a ?> 97?ram,,xk0? a1k0*b?p`k?,/?c ,| <'!,|,xdb? ?p`?0b ? a?t+? pmdat = ramk0? a??0 ???"?? 43 ?p`?0   rev. 10-000051a 7/30/2013 ? 1 ? 10-2 ? 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 112 ? ? 2014 microchip technology inc. 10.6 ?? ? 10-1 pmdatl ???? r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u pmdat<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 pmdat<7:0> ? / ? ? 10-2 pmdath ???? u-0 u-0 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u ? ? pmdat<13:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 pmdat<13:8> ? / ? ? 10-3 pmadrl ???? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 pmadr<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 pmadr<7:0> ?? ? 10-4 pmadrh ???? u-1 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? (1) pmadr<14:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 ?? ? 1 bit 6-0 pmadr<14:8> ?? ? 1 ??? 1
? 2014 microchip technology inc. ds40001737a_cn 113 ? pic12(l)f1612/16(l)f1613 ? 10-5 pmcon1 1 ? u-1 r/w-0/0 r/w-0/0 r/w/hc-0/0 r/w/hc-x/q (2) r/w-0/0 r/s/hc-0/0 r/s/hc-0/0 ? (1) cfgs lwlo free wrerr wren wr rd bit 7 bit 0 ?? r = ? w = ? u = ?? 0 s = ? 1 x = ? -n/n = por bor ?? / ?? 1 = 10 = hc = ? bit 7 ?? ? 1 bit 6 cfgs ? 1 = ? id id ? 0 = bit 5 lwlo ?? (3) 1 = ? wr ?? / ??? 0 = ? wr ?? / ?????? bit 4 free ? 1 = ? wr ?? ??? 0 = ? wr ?? bit 3 wrerr / ? 1 = ??? / ????? ? wr 1 1 ?? 1 0 = ? bit 2 wren / ? 1 = / 0 = ??? / bit 1 wr ? 1 = ?? ??????? ?? wr 1 ? 0 = ? / ??? bit 0 rd 1 = ???? rd ???? rd 1 ? 0 = ? ? 1 ?? 1 2 ? wr = 1 ??? wrerr 1 3 ?? free = 1 lwlo ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 114 ? ? 2014 microchip technology inc. 10-3 ??? 10-4 ?? ? 10-6 pmcon2 2 ? w-0/0 w-0/0 w-0/0 w-0/0 w-0/0 w-0/0 w-0/0 w-0/0 ?? 2 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 s = ? 1 x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 ?? ??? 55h aah ?? pmcon1 ? wr 1 ????????? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 pmcon1 ? (1) cfgs lwlo free wrerr wren wr rd 113 pmcon2 ?? 2 114 pmadrl pmadrl<7:0> 112 pmadrh ? (1) pmadrh<6:0> 112 pmdatl pmdatl<7:0> 112 pmdath ? ? pmdath<5:0> 112 ?? ? = ?? 0 ??? ? 1 ??? 1 bit -/7 bit -/6 bit 13/5 bit 12/4 bit 11/3 bit 10/2 bit 9/1 bit 8/0 ? ? config1 13:8 ? ? ? ? clkouten boren<1:0> ? 48 7:0 cp mclre pwrte ? ? ? fosc<1:0> config2 13:8 ? ? lvp debug lpbor borv stvren pllen 49 7:0 zcddis ? ? ? ? ?wrt<1:0> config3 13:8 ? ? wdtccs<2:0> wdtcws<2:0> 50 7:0 ? wdte<1:0> wdtcps<4:0> ?? ? = ?? 0 ???
? 2014 microchip technology inc. ds40001737a_cn 115 ? pic12(l)f1612/16(l)f1613 11.0 ? crc ? ? crc ????? ?? crc ??? ? ? 16 ? crc ? ?? ? ? 16 ? ? ?? ? ?? ? ????? crc ? ? ? ? crc ??? 11.1 crc ? crc ???? eeprom ??? crc ????? crc ? ?? crc ? ?? crc ??? sfr ? ??1 11.2 crc ? crc ?????? ram ? crc ?? 16 ?? 16 ?? crc ???? crcacc<15:0> ? crc ?? xor ??? crc ?? 11-1 11.3 crc ?? ? 17 ?? plen<3:0> ??????? x n ? plen = n-2 n ? x n lsb crc 1 ?? crc msb lsb ? 1 ? crc-16-ansi ? ? 0x8005 ??? crcxor<15:1> ? 11-1 ? rev. 10-000206a 1/8/2014 crc-16-ansi x 16 +x 15 +x 2 +1 ? 17 !? crcxorh = 0b10000000 crcxorl = 0b0000010- (1) = 0x8005 dbc?? 0x55, 0x66, 0x77, 0x88 ?p`? accm = 1 ?? shiftm = 0 ? 0x32d6 crcacch = 0b00110010 crcaccl = 0b11010110 shiftm = 1 ? 0x6ba2 crcacch = 0b01101011 crcaccl = 0b10100010 dlen = 0b0111 plen = 0b1111 eg9 crc ,xdb? shiftm = 0 ? 01010101 01100110 01110111 10001000 shiftm = 1 ? 10101010 01100110 11101110 00010001 "? 1 ? bit 0 tr)??y crc ?nm?,x lsb  1  crc au1k crc ?p`w?? 1 ?a1 ! eca? 0 ? ?? 16 !> pic12(l)f1612/16(l)f1613 ds40001737a_cn 116 ? ? 2014 microchip technology inc. 11-2 crc lfsr ? 11.4 crc ? ???? crc ? - ??? crcdat ? - ?? ?? 16 ? crccon1 dlen ?q? crcdata ?? dlen crcdata ? ?? crcshift ??? crcacc ??? shiftm ??? shiftm 1 ? msb dlen ? msb shiftm 1 ?? lsb ?? ??? crc ?? crcacc<15:0> ? ??? crc ???? 11.4.1 ?? crc ??? crc ??? crcdat ? crcdat ?? ? crcdatl ???? 11.4.2 crc ??? crc ???? ? 11.8 ? 11.5 crc ? crc ? crc ? crcacc ?? crccon ??? accm shiftm accm 1 crc ??? ?????? accm ? 1 crc ???? ??? ????? ???????? ???? 0 ??????? crc 11.6 crc busy 1 ? 0 ? crc ? ? busy ??? crc ? pir4 ? crcif ?? 1 crcif ? ? crc ? pie4 ? crcie rev. 10-000207a 1/8/2014 dbeg9 b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 dbeg? crc-16-ansi ,x4?? ?o\/?!?, < x 16 +x 15 +x 2 +1 x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15 x 16
? 2014 microchip technology inc. ds40001737a_cn 117 ? pic12(l)f1612/16(l)f1613 11.7 crc 2?? crc 1. ?????T ? sfr ????? ? 11.4 ? crc ? ?? 2. ? crcacch/l ?? crc ??? 3. ???? crcxorh/l 4. ?? - 1 ? crccon1 ? dlen<3:0> 11-1 ? ???? 5. ??? - 2 ? crccon1 ? plen<3:0> 11-1 6. ????? crccon0 ? accm 7. ??? msb lsb ? crccon0 ? shiftm 8. crccon0 ? crcgo ? ? 9a. ?? sfr ? crccon0 ? full full = 0 ? crcdath/l ???? >8 ? crcdath ?? crcdatl ??? 9b. ???? scango 1 ? ??? crcdath/l ? ? 10a. ??? scanif scango ?????? crcdata ???? crcif busy ? crc ? ??? crcacc ?? ??? 1 busy scango ?? crcacch/l ??? crc 10b. ??? ? crcif busy ? crcacc ??? 11.8 ? ???? crc ? ????? crc ? ???? crc ??? 2s 1. en 1 ?? ? scango 1 ????? ??????? ?? 2. ?????? 11.10 ??? ? scancon0 ? mode 3. ??? scancon0 ? intm ???? 11.10.5 ? 4. ?????? scanladrl/h scanhadrl/h ? 5. ? scancon0 ? scango 1 ???? crcgo 1 crc ?????? ????? crc ? ????? ????? scango ?? ??? scanif ?? ? scango 11.9 ? scango 1 ? 0 ???? ??? crcdata ? pir4 scanif ?? 1 scanif ?? scan ? pie4 ? scanie 11.10 ??? ?? 4 ???s ?? ??? scancon0 ? mode ? 11-1 ? 4 ?? 11.10.1 ??? mode = 01 ???????? cpu ? scango 1 ???? ???????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 118 ? ? 2014 microchip technology inc. cpu ?????????? cpu ???? scango cpu ??????????? ??????? ????? 11.10.2 ?? mode = 00 ??????? ??????? cpu ?????????? cpu ??? 11.10.3 ?? mode = 11 ??????? ?????? scango 1 ???k????? ??? scantrig ? 11.10.4 ??? mode = 10 ?????? ??? cpu ? nvm ? ??? ???? nvm ?? nvm ? ????? ?h ??????? ?? 11-1 ??? 11.10.5 ? scancon0 ? intm ? nvm ? ??? 11-2 11-2 ??? ?? intm = 0 ?? ??? / ?? intm = 1 ?????? F?? mode<1:0> ? ?? cpu 11 ???? nvm ?? ?? cpu ?? 10 ? ??? ?? ?? cpu ? 01 ? nvm ?? cpu ????? 00 ?? cpu ?? intm mode<1:0> mode == ? mode != ? 1 ?? scango ?? ???? ?? ??????? ??? 0 ? scango ?? ???????? ??? ??? nvm mode != ????? ??
? 2014 microchip technology inc. ds40001737a_cn 119 ? pic12(l)f1612/16(l)f1613 11.10.6 wdt wdt ??????? ????? wdt ?? ? wdt ? ??????? 11.10.7 ? icd ? icd ?????????? ????????? scancon0 scanladr ????? 11-3 ? icd ????? 11-3 icd ?? icd ? ??? ? ? ?? ????? ? icd ? icd ???? ???? ?? icd ??? ? ???????? ?? bsf(scancon.go) ? icd ? ???? icd ?? ???? nvm ??? icd ?????? ???? ? icd ???? ???? icd ? pc ? ?? icd ??? ? icd pc ? ??? bsf(scancon.go) ?? ? icd ?? icd ?? ?? ??????? ?? ?????? icd ??? k?????? icd ?? ? ??? ?? pfm ?? icd swbp icdinst ?? swbp ??? ?? icd swbp I bsf(scancon.go) icd ??? icd ? ? icdinstr ? ? ? ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 120 ? ? 2014 microchip technology inc. 11.11 ? crc ? ? 11-1 crccon0 crc ?? 0 r/w-0/0 r/w-0/0 r-0 r/w-0/0 u-0 u-0 r/w-0/0 r-0 en crcgo busy accm ? ? shiftm full bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 en crc ? 1 = ???? crc ? 0 = ? crc ? bit 6 crcgo crc 1 = crc 0 = ? crc bit 5 busy crc ? 1 = ??? 0 = ????? empty = 1 bit 4 accm ??? 1 = ? 0 = ? bit 3-2 ?? ? 0 bit 1 shiftm ?? 1 = lsb 0 = msb bit 0 full ?? 1 = crcdath/l ? 0 = crcdath/l ?? ? 11-2 crccon1 crc ?? 1 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 dlen<3:0> plen<3:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-4 dlen<3:0> ? ?? - 1 11-1 bit 3-0 plen<3:0> ? ?? - 1 11-1
? 2014 microchip technology inc. ds40001737a_cn 121 ? pic12(l)f1612/16(l)f1613 ? 11-3 crcdath crc ???? r/w-xx r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x dat<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 dat<15:8> crc / ? 11-4 crcdatl crc ???? r/w-xx r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x dat<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 dat<7:0> crc / ?? ? 11-5 crcacch crc ???? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 acc<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 acc<15:8> crc ?? ?? crc ????? crc ? ? 11-6 crcaccl crc ???? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 acc<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 acc<7:0> crc ?? ??? crc ? crc ????? crc ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 122 ? ? 2014 microchip technology inc. ? 11-7 crcshifth crc ??? r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 shift<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 shift<15:8> crc ? ??? crc ? 11-8 crcshiftl crc ??? r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 shift<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 shift<7:0> crc ? ??? crc ? 11-9 crcxorh crc ??? r/w r/w r/w r/w r/w r/w r/w r/w x<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 x<15:8> ? x n ? ? 11-10 crcxorl crc ??? r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x r/w-x/x u-0 x<7:1> ? bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-1 x<7:1> ? x n ? bit 0 ?? ? 0
? 2014 microchip technology inc. ds40001737a_cn 123 ? pic12(l)f1612/16(l)f1613 ? 11-11 scancon0 ???? 0 r/w-0/0 r/w/hc-0/0 r-0 r-0 r/w-0/0 u-0 r/w-0/0 r/w-0/0 en (1) scango (2, 3) busy (4) invalid intm ? mode<1:0> (5) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = hc = ? bit 7 en ?? (1) 1 = ?? 0 = ????? bit 6 scango ? go (2, 3) 1 = crc ??? mdx nvm ??? 0 = ? bit 5 busy ???? (4) 1 = ?? 0 = ? bit 4 invalid ??? 1 = scanladrl/h ??? (6) 0 = scanladrl/h ??? bit 3 intm nvm ????? mode = 10 mode = 01 cpu ????? 1 = ?? scango ?????? 0 = scango ???? mode = 00 11 1 = ?? scango ?????? 0 = ?? nvm bit 2 ?? ? 0 bit 1-0 mode<1:0> ?? (5) 11 = ?? 10 = ??? 01 = ??? 00 = ?? ? 1 en = 0 scancon0 ???? 2 ladr > hadr ? ??? 3 intm = 1 ??? ??? 4 nvm ? crc ??? busy = 1 5 ?? 11-1 6 ?? pfm ???? 0x4000 scanhadr = 0x3fff ???? scanladr 0x4000 ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 124 ? ? 2014 microchip technology inc. ? 11-12 scanladrh ?????? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ladr<15:8> (1, 2) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 ladr<15:8> ?? / ?? (1, 2) ??????????? ? 1 ? scanladrh/l ? 16 ??????? scango = 0 scancon0 ???? 2 scango = 1 scancon0 ?????? ? 11-13 scanladrl ?????? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ladr<7:0> (1, 2) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 ladr<7:0> ?? / ?? (1, 2) ??????????? ? 1 ? scanladrh/l ? 16 ??????? scango = 0 scancon0 ???? 2 scango = 1 scancon0 ??????
? 2014 microchip technology inc. ds40001737a_cn 125 ? pic12(l)f1612/16(l)f1613 ? 11-14 scanhadrh ?????? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 hadr<15:8> (1, 2) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 hadr<15:8> ?? (1, 2) ????? ? 1 ? scanhadrh/l ? 16 ??????? scango = 0 scancon0 ???? 2 scango = 1 scancon0 ?????? ? 11-15 scanhadrl ?????? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 hadr<7:0> (1, 2) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 hadr<7:0> ?? (1, 2) ????? ? 1 ? scanhadrh/l ? 16 ??????? scango = 0 scancon0 ???? 2 scango = 1 scancon0 ??????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 126 ? ? 2014 microchip technology inc. 11-4 crc ??? ? 11-16 scantrig ??? u-0 u-0 u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 ? ? ? ? ? ? tsel<1:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-2 ?? ? 0 bit 1-0 tsel<1:0> ??? 11 = tmr6_postscaled 10 = tmr4_postscaled 01 = tmr2_postscaled 00 = lfintosc bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? crcacch acc<15:8> 121 crcaccl acc<7:0> 121 crccon0 en crcgo busy accm ? ? shiftm full 120 crccon1 dlen<3:0> plen<3:0> 120 crcdath data<15:8> 121 crcdatl data<7:0> 121 crcshifth shift<15:8> 122 crcshiftl shift<7:0> 122 crcxorh x<15:8> 122 crcxorl x<7:1> ? 122 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 pir4 scanif crcif smt2pwaif smt2praif smt2if smt1pwaif smt1praif smt1if 86 pie4 scanie crcie smt2pwaie smt2praie smt2ie smt1pwaie smt1praie smt1ie 82 scancon0 en scango busy invalid intm ? mode<1:0> 123 scanhadrh hadr<15:8> 125 scanhadrl hadr<7:0> 125 scanladrh ladr<15:8> 124 scanladrl ladr<7:0> 124 scantrig ? ? tsel<1:0> 126 ?? ? = ?? 0 crc ???? * ????
? 2014 microchip technology inc. ds40001737a_cn 127 ? pic12(l)f1612/16(l)f1613 12.0 i/o ? ??????? ? trisx ? ? ? portx ? ???? ? latx ? ? inlvlx ?? ? odconx ? ? ? slrconx ? ?? ??????? ?? ? anselx ?? ? wpux ??????? ????? latx ? i/o ? - ? - ?? latx ??? portx ? ?? latx ??? i/o ? ?? portx ??? ?? i/o ? ?????? anselx ?? ansel 1 ??? ??????? ??????????? ? ? 12-1 ? i/o ???? ????? ? 12-1 ? i/o ???? 12-1 ???? porta portc pic16(l)f1613 ?? pic12(l)f1612 ? m latx m portx db4? a? portx 7?d+a? 7??3a? db?, < trisx v ss i/o 6? anselx dq ck a? latx v dd rev. 10-000052a 7/30/2013
pic12(l)f1612/16(l)f1613 ds40001737a_cn 128 ? ? 2014 microchip technology inc. 12.1 ? ??? apfcon ??? ??? apfcon ? ? 12-1 ? ??1? ??? ? cwga ? cwgb ? t1g ? ccp1 ? ccp2 tris ????? port tris ?????? ?? 12.2 ??? ? 12-1 apfcon ???? u-0 r/w-0/0 r/w-0/0 u-0 r/w-0/0 u-0 r/w-0/0 r/w-0/0 ? cwgasel (1) cwgbsel (1) ? t1gsel ? ccp2sel (2) ccp1sel (1) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 ?? ? 0 bit 6 cwgasel ? (1) 1 = ra5 ? cwga 0 = ra2 ? cwga bit 5 cwgbsel ? (1) 1 = ra4 ? cwgb 0 = ra0 ? cwgb bit 4 ?? ? 0 bit 3 t1gsel ? 1 = ra3 ? t1g 0 = ra4 ? t1g bit 2 ?? ? 0 bit 1 ccp2sel ? (2) 1 = ra5 ? ccp2 0 = rc3 ? ccp2 bit 0 ccp1sel ? (1) 1 = ra5 ? ccp1 0 = ra2 ? ccp1 ? 1 pic12(l)f1612 2 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 129 ? pic12(l)f1612/16(l)f1613 12.3 porta ? 12.3.1 ?? porta ? 6 ?????? trisa ? 12-3 trisa ? 1 = 1 ?? porta ?? ? trisa ? = 0 ?? porta ?? ? ?? ra3 ?? ?? tris ?? 1 12-1 ? ? i/o ?? porta ? ? 12-2 ??? ??? ? - ? - ???? ???????? ???? lata 12.3.2 trisa ? ? 12-3 ? porta ????? ???? trisa ?? 1 ?? i/o ?? 0 12.3.3 ? odcona ? ? 12-7 ????? ?????? ?? odcona 1 ?????? ?? odcona ? ??????? 12.3.4 ?? slrcona ? ? 12-8 ??? ?????????? ??? slrcona 1 ??? ???? slrcona ? ?????? 12.3.5 ? inlvla ? ? 12-9 ?? porta ?????? ? cmos ? ttl ?? ? porta ????????? ???? ??? ???? 28.3 ?? 12.3.6 ? ansela ? ? 12-5 ? i/o ? ?????? ansela ??? ???? 0 ??? ansela ???? tris ansel 1 ?? ????????? - ? - ?????? 12-1 ? porta ? ????? ????? ???????? ?? ???? ? ?? ansela ??? ???? ???? ansel ?? 0 banksel porta ; clrf porta ;init porta banksel lata ;data latch clrf lata ; banksel ansela ; clrf ansela ;digital i/o banksel trisa ; movlw b'00111000' ;set ra<5:3> as inputs movwf trisa ;and set ra<2:0> as ;outputs
pic12(l)f1612/16(l)f1613 ds40001737a_cn 130 ? ? 2014 microchip technology inc. 12.3.7 porta ?? ? porta ?? 12-2 ???? ??????? ?????? adc ?? ?? anselx ? i/o ?????????? ?? 12-2 ?? 12-2 porta ? pic12(l)f1612 ? (1) ra0 dac1out1 cwg1b (2) ccp2 ra0 ra1 zcd1out ra1 ra2 cwg1a (2) c1out ccp1 ra2 (2) ra3 ra3 ra4 clkout cwg1b (3) ra4 ra5 cwg1a (3) ccp1 (3) ra5 ? 1 ?? 2 ? apfcon ? 3 apfcon ? 12-3 porta ? pic16(l)f1613 ? (1) ra0 dac1out1 ra0 ra1 zcd1out ra1 ra2 c1out ra2 (2) ra3 ra3 ra4 clkout ra4 ra5 ccp2 (3) ra5 ? 1 ?? 2 ? apfcon ? 3 apfcon ?
? 2014 microchip technology inc. ds40001737a_cn 131 ? pic12(l)f1612/16(l)f1613 12.4 ? porta ? 12-2 porta porta ? u-0 u-0 r/w-x/x r/w-x/x r-x/x r/w-x/x r/w-x/x r/w-x/x ? ? ra5 ra4 ra3 ra2 ra1 ra0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 ra<5:0> porta i/o ? (1) 1 = ??? > v ih 0 = ??? < v il ? 1 porta ???? lata ?? porta ???? i/o ? ? 12-3 trisa porta ?? u-0 u-0 r/w-1/1 r/w-1/1 u-1 r/w-1/1 r/w-1/1 r/w-1/1 ? ? trisa5 trisa4 ? (1) trisa2 trisa1 trisa0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-4 trisa<5:4> porta ? 1 = porta ?? ? 0 = porta ?? bit 3 ?? ? 1 bit 2-0 trisa<2:0> porta ? 1 = porta ?? ? 0 = porta ?? ? 1 ??? 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 132 ? ? 2014 microchip technology inc. ? 12-4 lata porta ? u-0 u-0 r/w-x/u r/w-x/u u-0 r/w-x/u r/w-x/u r/w-x/u ? ?lata5lata4 ? lata2 lata1 lata0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-4 lata<5:4> ra<5:4> ? (1) bit 3 ?? ? 0 bit 2-0 lata<2:0> ra<2:0> ? (1) ? 1 porta ???? lata ?? porta ???? i/o ? ? 12-5 ansela porta ??? u-0 u-0 u-0 r/w-1/1 u-0 r/w-1/1 r/w-1/1 r/w-1/1 ? ? ? ansa4 ? ansa2 ansa1 ansa0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-5 ?? ? 0 bit 4 ansa4 ra4 ???? 1 = ????? (1) ?? 0 = i/o ?????? bit 3 ?? ? 0 bit 2-0 ansa<2:0> ra<2:0> ???? 1 = ????? (1) ?? 0 = i/o ?????? ? 1 ?????? tris ??????
? 2014 microchip technology inc. ds40001737a_cn 133 ? pic12(l)f1612/16(l)f1613 ? 12-6 wpua porta ? u-0 u-0 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 ? ? wpua5 wpua4 wpua3 wpua2 wpua1 wpua0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 wpua<5:0> ? (3) 1 = ? 0 = ? ? 1 option_reg ?? wpuen ???? 2 ???? 3 wpua3 mclre = 1 ?????? ? 12-7 odcona porta ??? u-0 u-0 r/w-0/0 r/w-0/0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 ? ?oda5oda4 ? oda2 oda1 oda0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-4 oda<5:4> porta ?? ? ra<5:4> 1 = ??? 0 = ??? ? bit 3 ?? ? 0 bit 2-0 oda<2:0> porta ?? ? ra<2:0> 1 = ??? 0 = ??? ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 134 ? ? 2014 microchip technology inc. ? 12-8 slrcona porta ???? u-0 u-0 r/w-1/1 r/w-1/1 u-0 r/w-1/1 r/w-1/1 r/w-1/1 ? ? slra5 slra4 ? slra2 slra1 slra0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-4 slra<5:4> porta ?? ? ra<5:4> 1 = ???? 0 = ?????? bit 3 ?? ? 0 bit 2-0 slra<2:0> porta ?? ? ra<2:0> 1 = ???? 0 = ?????? ? 12-9 inlvla porta ??? u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? inlvla5 inlvla4 inlvla3 inlvla2 inlvla1 inlvla0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 inlvla<5:0> porta ?? ? ra<5:0> 1 = ??????? st 0 = ??????? ttl
? 2014 microchip technology inc. ds40001737a_cn 135 ? pic12(l)f1612/16(l)f1613 12-4 porta ??? 12-5 porta ?? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? ansela ? ? ? ansa4 ? ansa2 ansa1 ansa0 132 apfcon ? cwgasel (2) cwgbsel (2) ? t1gsel ? ccp2sel (3) ccp1sel (2) 128 inlvla ? ? inlvla5 inlvla4 inlvla3 inlvla2 inlvla1 inlvla0 134 lata ? ?lata5lata4 ? lata2 lata1 lata0 132 odcona ? ?oda5oda4 ? oda2 oda1 oda0 133 option_reg wpuen intedg tmr0cs tmr0se psa ps<2:0> 183 porta ? ? ra5 ra4 ra3 ra2 ra1 ra0 131 slrcona ? ?slra5slra4 ? slra2 slra1 slra0 134 trisa ? ? trisa5 trisa4 ? (1) trisa2 trisa1 trisa0 131 wpua ? ? wpua5 wpua4 wpua3 wpua2 wpua1 wpua0 133 ?? x = ? u = ? ? = ?? 0 porta ??? ? 1 ??? 1 2 pic12(l)f1612 3 pic16(l)f1613 bit -/7 bit -/6 bit 13/5 bit 12/4 bit 11/3 bit 10/2 bit 9/1 bit 8/0 ? ? config1 13:8 ? ? fcmen ieso clkouten boren<1:0> ? 48 7:0 cp mclre pwrte ? ? ? fosc<1:0> ?? ? = ?? 0 porta ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 136 ? ? 2014 microchip technology inc. 12.5 portc ? pic16(l)f1613 12.5.1 ?? portc ? 6 ????? trisc ? 12-11 trisc ? 1 = 1 ? portc ??? ? trisc ? = 0 ?? portc ?? ? ?? 12-1 ?? i/o ?? portc ? ? 12-10 ?? ???? ? - ? - ???? ???????? ???? latc 12.5.2 trisc ? ? 12-11 ? portc ????? ? ??? trisc ?? 1 ?? i/o ?? 0 12.5.3 ? odconc ? ? 12-14 ????? ?????? ?? odconc 1 ?????? ?? odconc ? ??????? 12.5.4 ?? slrconc ? ? 12-15 ??? ?????????? ??? slrconc 1 ??? ???? slrconc ? ?????? 12.5.5 ? inlvlc ? ? 12-16 ?? portc ?????? ? cmos ? ttl ?? ? portc ????????? ???? ??? ???? 28.3 ?? 12.5.6 ? anselc ? ? 12-13 ? i/o ? ?????? anselc ??? ???? 0 ??? anselc ???? tris anselc 1 ??? ???? ???? - ? - ? ????? ? ????? ????? ???????? ?? ???? ? ?? anselc ??? ???? ???? ansel ?? 0
? 2014 microchip technology inc. ds40001737a_cn 137 ? pic12(l)f1612/16(l)f1613 12.5.7 portc ?? ? portc ?? 12-6 ???? ??????? ????? ?????? ??????? ??? 12-6 portc ? ? (1) rc0 rc0 rc1 rc1 rc2 cwg1d rc2 rc3 cwg1c ccp2 (2) rc3 rc4 cwg1b c2out rc4 rc5 cwg1a ccp1 rc5 ? 1 ?? 2 ? apfcon ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 138 ? ? 2014 microchip technology inc. 12.6 ? portc pic16(l)f1613 ? 12-10 portc portc ? u-0 u-0 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u ? ? rc5 rc4 rc3 rc2 rc1 rc0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 rc<5:0> portc ? i/o 1 = ??? > v ih 0 = ??? < v il ? 12-11 trisc portc ?? u-0 u-0 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 ? ? trisc5 trisc4 trisc3 trisc2 trisc1 trisc0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 trisc<5:0> portc ? 1 = portc ?? ? 0 = portc ?? ? 12-12 latc portc ? u-0 u-0 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u ? ? latc5 latc4 latc3 latc2 latc1 latc0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 latc<5:0> portc ? (1) ? 1 portc ???? latc ?? portc ???? i/o ?
? 2014 microchip technology inc. ds40001737a_cn 139 ? pic12(l)f1612/16(l)f1613 ? 12-13 anselc portc ??? u-0 u-0 u-0 u-0 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 ? ? ? ? ansc3 ansc2 ansc1 ansc0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-4 ?? ? 0 bit 3-0 ansc<3:0> rc<3:0> ???? 1 = ????? (1) ?? 0 = i/o ?????? ? 1 ?????? tris ?????? ? 12-14 odconc portc ??? u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? odc5 odc4 odc4 odc2 odc1 odc0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 odc<5:0> portc ?? ? rc<5:0> 1 = ??? 0 = ??? ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 140 ? ? 2014 microchip technology inc. 12-7 portc ??? (2) ? 12-15 slrconc portc ???? u-0 u-0 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 ? ? slrc5 slrc4 slrc3 slrc2 slrc1 slrc0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 slrc<5:0> portc ?? ? rc<5:0> 1 = ???? 0 = ?????? ? 12-16 inlvlc portc ??? u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? inlvlc5 inlvlc4 inlvlc3 inlvlc2 inlvlc1 inlvlc0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 inlvlc<5:0> portc ?? ? rc<5:0> 1 = ??????? st 0 = ??????? ttl bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? anselc ? ? ? ? ansc3 ansc2 ansc1 ansc0 139 apfcon ? cwgasel (1) cwgbsel (1) ? t1gsel ?ccp2sel (2) ccp1sel (1) 128 inlvlc ? ? inlvlc5 inlvlc4 inlvlc3 inlvlc2 inlvlc1 inlvlc0 140 latc ? ? latc5 latc4 latc3 latc2 latc1 latc0 138 odconc ? ? odc5 odc4 odc3 odc2 odc1 odc0 139 option_reg wpuen intedg tmr0cs tmr0se psa ps<2:0> 183 portc ? ? rc5 rc4 rc3 rc2 rc1 rc0 138 slrconc ? ? slrc5 slrc4 slrc3 slrc2 slrc1 slrc0 140 trisc ? ? trisc5 trisc4 trisc3 trisc2 trisc1 trisc0 138 wpuc ? ? wpuc5 wpuc4 wpuc3 wpuc2 wpuc1 wpuc0 133 ?? x = ? u = ? - = ?? 0 portc ??? ? 1 pic12(l)f1612 2 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 141 ? pic12(l)f1612/16(l)f1613 13.0 ? porta portc ???? ioc ????? ???????? ????? ? ? ? ? ? ??? ? ?? ? 13-1 ioc ??? 13.1 ?? ???? intcon ? iocie 1 iocie ? ????? 13.2 ??????? ???? iocxp ? 1 ????? iocxn 1 ??? iocxp iocxn ? 1 ? ??????? 13.3 ?? ? iocaf ioccf ? iocafx ioccfx ??????????? ???????? ???? 1 iocie ? 1 ? intcon ? iocif ?? iocafx ioccfx ?? 13.4 ?? ??? iocafx ioccfx ? ??????? ??????? ? 1 ?????????? ??? ????? 13-1 ?? porta ? 13.5 ??? iocie 1 ???? ??? ????????? ?????? iocxf ? movlw 0xff xorwf iocaf, w andwf iocaf, f
pic12(l)f1612/16(l)f1613 ds40001737a_cn 142 ? ? 2014 microchip technology inc. ? 13-1 ??? porta ? iocanx iocapx q2 q4q1 db4? = 0  1 m iocafx iocie 7?db4? iocafx e?"? ?#  cpu y ,x ioc ? 97?yja iocnfx ,x(0? 6??# < dq s dq r dq r rax q1 q2 q3 q4 q4q1 q1 q2 q3 q4 q1 q2 q3 q4 q4q1 q4q1 q4q1 f osc rev. 10 -000 037a 7/30/2013 r
? 2014 microchip technology inc. ds40001737a_cn 143 ? pic12(l)f1612/16(l)f1613 13.6 ??? ? 13-1 iocap ? porta ?? u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? iocap5 iocap4 iocap3 iocap2 iocap1 iocap0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 iocap<5:0> ? porta ? 1 = ??? iocafx iocif ???? 1 0 = ????? ? 13-2 iocan ? porta ?? u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? iocan5 iocan4 iocan3 iocan2 iocan1 iocan0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 iocan<5:0> ? porta ? 1 = ???? iocafx iocif ???? 1 0 = ????? ? 13-3 iocaf ? porta ?? u-0 u-0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 ? ? iocaf5 iocaf4 iocaf3 iocaf2 iocaf1 iocaf0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = hs = ? 1 bit 7-6 ?? ? 0 bit 5-0 iocaf<5:0> ? porta ? 1 = ??????? iocapx = 1 rax ??? 1 iocanx = 1 rax ???? 1 0 = ???????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 144 ? ? 2014 microchip technology inc. ? 13-4 ioccp ? portc ?? (1) u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ioccp5 ioccp4 ioccp3 ioccp2 ioccp1 ioccp0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 ioccp<5:0> ? portc ? 1 = ??? ioccfx iocif ???? 1 0 = ????? ? 1 pic16(l)f1613 ? 13-5 ioccn ? portc ?? (1) u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ioccn5 ioccn4 ioccn3 ioccn2 ioccn1 ioccn0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 ?? ? 0 bit 5-0 ioccn<5:0> ? portc ? 1 = ???? ioccfx iocif ???? 1 0 = ????? ? 1 pic16(l)f1613 ? 13-6 ioccf ? portc ?? (1) u-0 u-0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 r/w/hs-0/0 ? ? ioccf5 ioccf4 ioccf3 ioccf2 ioccf1 ioccf0 bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = hs = ? 1 bit 7-6 ?? ? 0 bit 5-0 ioccf<5:0> ? portc ? 1 = ??????? ioccpx = 1 rcx ??? 1 ioccnx = 1 rcx ???? 1 0 = ??????? ? 1 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 145 ? pic12(l)f1612/16(l)f1613 13-1 ???? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? ansela ? ? ?ansa4 ? ansa2 ansa1 ansa0 132 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 iocaf ? ? iocaf5 iocaf4 iocaf3 iocaf2 iocaf1 iocaf0 143 iocan ? ? iocan5 iocan4 iocan3 i ocan2 iocan1 iocan0 143 iocap ? ? iocap5 iocap4 iocap3 iocap2 iocap1 iocap0 143 ioccf (2) ? ? ioccf5 ioccf4 ioccf3 ioccf2 ioccf1 ioccf0 144 ioccn (2) ? ? ioccn5 ioccn4 ioccn3 ioccn2 ioccn1 ioccn0 144 ioccp (2) ? ? ioccp5 ioccp4 ioccp3 i occp2 ioccp1 ioccp0 144 trisa ? ? trisa5 trisa4 ?(1) trisa2 trisa1 trisa0 131 trisc (2) ? ? trisc5 trisc4 trisc3 t risc2 trisc1 trisc0 138 ?? ? = ?? 0 ????? ? 1 ??? 1 2 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 146 ? ? 2014 microchip technology inc. 14.0 ?? fvr ?? fvr ???? v dd ?? v fvr ? 1.024v fvr ???? ? adc ? ? ? ? ?? fvr ? fvrcon ? fvren 1 ?? 14.1 ? ? fvr ??? ? ????? 1x 2x 4x ???? fvrcon ? adfvr<1:0> ?? adc ????? 16.0 ?? adc ?B fvrcon ? cdafvr<1:0> ?? ?????? ? 18.0 ??B ????? fvr ??? ??? ?? fvr 14.2 fvr ? ????????? ????????? ? fvrcon ? fvrrdy 1 ? 29-19 ? 14-1 ?? 1x 2x 4x 1x 2x 4x adfvr<1:0> cdafvr<1:0> fvr 4??  1 ?7? adc ? +? fvr 4??  2 ?7?!ew <
` dac ? + _ fvren fvrrdy "? 1 2 2 rev. 10 -000 053c 12 /9/201 3 ? 1 ??? 14-1
? 2014 microchip technology inc. ds40001737a_cn 147 ? pic12(l)f1612/16(l)f1613 14-1 ??? fvr ? hfintosc fosc<2:0> = 010 ircf<3:0> = 000x intosc ?? bor boren<1:0> = 11 bor ?? boren<1:0> = 10 borfs = 1 bor ??? bor ?? boren<1:0> = 01 borfs = 1 bor ? bor ?? ldo vregpm = 1 ??? ? pic12f1612/16f1613 ?????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 148 ? ? 2014 microchip technology inc. 14.3 ? fvr 14-2 ????? ? 14-1 fvrcon ???? r/w-0/0 r-q/q r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 fvren (1) fvrrdy (2) tsen (3) tsrng (3) cdafvr<1:0> (1) adfvr<1:0> (1) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 fvren ??? (1) 1 = ???? 0 = ??? bit 6 fvrrdy ??? (2) 1 = ?? 0 = ???? bit 5 tsen ???? (3) 1 = ???? 0 = ???? bit 4 tsrng ???? (3) 1 = v out = v dd - 4v t ?? 0 = v out = v dd - 2v t ?? bit 3-2 cdafvr<1:0> ? fvr ? (1) 11 = ? fvr ? 4x v cdafvr = 4x v fvr (4) 10 = ? fvr ? 2x v cdafvr = 2x v fvr (4) 01 = ? fvr ? 1x v cdafvr = 1x v fvr 00 = ? fvr ? bit 1-0 adfvr<1:0> adc fvr ? (1) 11 = adc fvr ? 4x v adfvr = 4x v fvr (4) 10 = adc fvr ? 2x v adfvr = 2x v fvr (4) 01 = adc fvr ? 1x v adfvr = 1x v fvr 00 = adc fvr ? ? 1 ????? fvr ???????? fvr 2 pic12f1612/16f1613 fvrrdy ? 1 3 ? 15.0 ????B 4 ??? v dd bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? fvrcon fvren fvrrdy tsen tsr ng cdafvr>1:0> adfvr<1:0> 148 ?? ??????
? 2014 microchip technology inc. ds40001737a_cn 149 ? pic12(l)f1612/16(l)f1613 15.0 ???? ???????? ??? -40c +85c ?? ???????? ? adc ? ???? ????????? ??????????? ??????? ????? an1333 ?? ???? ds01333a_cn 15.1 ? ? 15-1 ?????? ???? ???? ? 15-1 ???? ? 15-1 v out ????? fvr ? ? 14.0 ?? fvr ? fvrcon ? tsen 1 ?? ???? ???????? ??? fvrcon ? tsrng 1 ????? ??????????? ?????????? v dd ????? fvrcon ? tsrng ??????? ????????? ?? ? 15-1 ???? 15.2 ? v dd ???????Z ???1 ??????? v dd ??????? 15-1 ? v dd ? 15-1 v dd ? 15.3 ? ?????? ???? 16.0 ??? adc ?B 15.4 adc ?? ????? ? adc ??????? 200 s ? ??????? ??? 200 s ?? v out = v dd - 4v t ?? v out = v dd - 2v t v dd tsrng = 1 v dd tsrng = 0 3.6v 1.8v v out #yz?/ < 7? adc tsrng tsen rev. 10-000069a 7/31/2013 v dd
pic12(l)f1612/16(l)f1613 ds40001737a_cn 150 ? ? 2014 microchip technology inc. 15-2 ?????? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? fvrcon fvren fvrrdy tsen tsrng cdafvr<1:0> adfvr<1:0> 148 ?? ???????
? 2014 microchip technology inc. ds40001737a 151 ? pic12(l)f1612/16(l)f1613 16.0 ?? adc ? ?? adc ??????? 10 ??????? ?????? ????? 10 ?? adc ? adresh:adresl ?? ? 16-1 adc ?? ?????????? ? adc ? adc ??? ?? ??? ? 16-1 adc ? rev. 10 -000 033c 1/15 /201 4 v rpos v rneg s6? +- fvr 4??  1 #yz?/ < chs<4:0> f? e?f' eg9 go/done `? ?? adc g? + c? m9 go/done ! v ss v dd v ref + 6? v dd adpref 0 = ou$ 1 = ?u$ adresh adresl 16 adfm 10 yf? e?f' eg9 . . . an0 ana anz  adif !5b 1 v dd adon g? eg9 q1 q2 q4 fosc ne < f osc f osc /n f rc adc js ey? adc_clk adcs<2:0> f rc adc js$d ?o  ?ey? ?o $d . . . trigsel<3:0> 7?|e@6?o  ? !7 ?5+ _ ey?
pic12(l)f1612/16(l)f1613 ds40001737a 152 ? ? 2014 microchip technology inc. 16.1 adc ? adc ??1? ? ? ? ?? ? adc ?? ? adc ??? ? ? ? ? 16.1.1 ? adc ?????????? ? ??? tris ansel i/o ???? 12.0 ? i/o ?? 16.1.2 ?? 11 ????? ? an<7:0> pic16(l)f1613 ? an<3:0> pic12(l)f1612 ? ??? ? dac1 ? fvr 1 adcon0 ? chs ? ? ??????????? t acq ? 16.2.6 ? adc ? w 16.1.3 adc ? adc ?????? ? ref+ ?? ref- ? ref+ ? adcon1 ? adpref ???? ? v ref + ? v dd ? fvr 1 ? ref- ?? ? v ss 16.1.4 ?? ?? adcon1 ? adcs ? ??? 7 ????? ? f osc /2 ? f osc /4 ? f osc /8 ? f osc /16 ? f osc /32 ? f osc /64 ? frc ? rc ????? t ad ? 10 ?? 11.5 t ad ? ? 16-2 ? ???? t ad Z? 28.0 Z adc ?? 16-1 ? adc ??? ? ???? ????? ? ? frc ????? ??? adc ???? adc
? 2014 microchip technology inc. ds40001737a 153 ? pic12(l)f1612/16(l)f1613 16-1 adc ? t ad ??? ? 16-2 ?? t ad adc ? t ad ? f osc adc ?? adcs<2:0> 20 mhz 16 mhz 8 mhz 4 mhz 1 mhz fosc/2 000 100 ns 125 ns 250 ns 500 ns 2.0 s fosc/4 100 200 ns 250 ns 500 ns 1.0 s4.0 s fosc/8 001 400 ns 500 ns 1.0 s2.0 s 8.0 s fosc/16 101 800 ns 1.0 s2.0 s4.0 s 16.0 s fosc/32 010 1.6 s2.0 s4.0 s 8.0 s 32.0 s fosc/64 110 3.2 s4.0 s 8.0 s 16.0 s 64.0 s frc x11 1.0-6.0 s 1.0-6.0 s 1.0-6.0 s1.0-6.0 s1.0-6.0 s ?? ???? ? 1 frc ??? t ad ?? 1.7 s 2 ?? 1 mhz ???????? frc ?? 3 ? frc ??? t ad ???? t ad ?? f osc ??? t ad ??? t ad ????????? frc ?? t ad 1t ad 2t ad 3t ad 4t ad 5t ad 6t ad 7t ad 8t ad 9t ad 10 t ad 11  go !5b 1 e@6?? ?+ ?a?3eg9 6???? thcd ?? ??t
<? >?9 adresh:adresl  #l go    adif a 1  ?+ ?a?3eg9e?f'g??e2y? b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 s6? adc ? adon !? j ey?e?f'? acs !? t hcd t acq rev. 10-000035a 7/30/2013
pic12(l)f1612/16(l)f1613 ds40001737a 154 ? ? 2014 microchip technology inc. 16.1.5 adc ????? adc ? ? pir1 ? adif adc ? pie1 ? adie adif ? ??? ???????? sleep ????? ????? intcon ? gie peie ? intcon ? gie peie ???? 16.1.6 ? 10 adc ????? ? adcon1 ? adfm ? ? 16-3 ? ? 16-3 10 adc ?? ? 1 adif ??? 1 ? adc ?? 2 ? frc ? adc ??1 msb msb lsb lsb ? adfm = 0 ? ? adfm = 1 ? bit 7 bit 7 bit 7 bit 7 bit 0 bit 0 bit 0 bit 0 10 ! adc 4p tr)??a? 0 adresh adresl rev. 10-000054a 7/30/2013 tr)??a? 0 10 ! adc 4p
? 2014 microchip technology inc. ds40001737a 155 ? pic12(l)f1612/16(l)f1613 16.2 adc ? 16.2.1 ? ?? adc ? adcon0 ? adon ? 1 adcon0 ? go/done ? 1 ?? 16.2.2 ? ?? adc ?q ? go/done ? adif ?? 1 ? ? adresh adresl ? 16.2.3 ?? ???? go/ done ???? adresh adresl ??? 16.2.4 ? adc adc ???1? adc ? ?? frc ??? adc ?? ?? adc ??? ???? adc ? adon ? 1 ?? adc ?q?? adc ?? frc ? adon ? 1 sleep ????? adc ??? 16.2.5 ?? ???? adc ? ??? go/done ? 1 ???? adcon2 ? trigsel<3:0> ? ????? adc ?? ? adc ?? ??? 16-2 ? ? adc ??? go/ done 1 16.2.6 ? adc ?w ? ???? ?? adc ???? ?? 16-2 ??? ?? ? timer0 t0_overflow timer1 t1_overflow timer2 tmr2_postscaled timer4 tmr4_postscaled timer6 tmr6_postscaled ? c1 c1_out_sync ? c2 (1) c2_out_sync smt1 smt1_cpw smt1 smt1_cpr smt1 smt1_pr smt2 smt2_cpw smt2 smt2_cpr smt2 smt2_pr ccp1 ccp1_out ccp2 ccp2_out ? 1 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a 156 ? ? 2014 microchip technology inc. 16.2.6 adc ? adc ????s 1. ??? ? ? tris ? ? ??? ansel ? 2. adc ? ? ? adc ?? ? ? ? ? adc ? ? adc ? 3. adc ? ? adc ?? ? adc ? ? ? (1) 4. ??? (2) 5. ? go/done 1 ? 6. ????? adc ?? ? ? go/done ? ? adc ? 7. ? adc 8. adc ?? ? 16-1 adc ? ? 1 ????? ???? 2 16.4 ? adc ?? ;this code block configures the adc ;for polling, vdd and vss references, frc ;oscillator and an0 input. ; ;conversion start & polling for completion ; are included. ; banksel adcon1 ; movlw b?11110000? ;right justify, frc ;oscillator movwf adcon1 ;vdd and vss vref+ banksel trisa ; bsf trisa,0 ;set ra0 to input banksel ansel ; bsf ansel,0 ;set ra0 to analog banksel adcon0 ; movlw b?00000001? ;select channel an0 movwf adcon0 ;turn adc on call sampletime ;acquisiton delay bsf adcon0,adgo ;start conversion btfsc adcon0,adgo ;is conversion done? goto $-1 ;no, test again banksel adresh ; movf adresh,w ;read upper 2 bits movwf resulthi ;store in gpr space banksel adresl ; movf adresl,w ;read lower 8 bits movwf resultlo ;store in gpr space
? 2014 microchip technology inc. ds40001737a 157 ? pic12(l)f1612/16(l)f1613 16.3 ? adc ? 16-1 adcon0 adc ?? 0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? chs<4:0> go/done adon bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 ?? ? 0 bit 6-2 chs<4:0> ??? 11111 = fvr ?? 1 (3) 11110 = dac ?? (2) 11101 = ??? (1) 11100 = ? ? ? ? 01000 = ? 00111 = an7 (4) 00110 = an6 (4) 00101 = an5 (4) 00100 = an4 (4) 00011 = an3 00010 = an2 00001 = an1 00000 = an0 bit 1 go/done adc ??? 1 = adc ?? 1 adc ?? adc ??????? 0 = adc ? / bit 0 adon adc ? 1 = ? adc 0 = ? adc ? ? 1 15.0 ????B 2 ? 17.0 ? 8 ?? dac1 ?B 3 ? 14.0 ?? fvr 4 an<7:4> pic16(l)f1613 ?
pic12(l)f1612/16(l)f1613 ds40001737a 158 ? ? 2014 microchip technology inc. ? 16-2 adcon1 adc ?? 1 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 u-0 u-0 r/w-0/0 r/w-0/0 adfm adcs<2:0> ? ? adpref<1:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 adfm adc ?? 1 = ????? adresh ? 6 ? 0 0 = ???? adresl ? 6 ? 0 bit 6-4 adcs<2:0> adc ??? 111 = frc ? rc ??? 110 = f osc /64 101 = f osc /16 100 = f osc /4 011 = frc ? rc ??? 010 = f osc /32 001 = f osc /8 000 = f osc /2 bit 3-2 ? ? 0 bit 1-0 adpref<1:0> adc ? 11 = v rpos ???? fvr 10 = v rpos ?? v ref + (1) 01 = 00 = v rpos ? v dd ? 1 ? v ref + ??????Z? 28.0 Z
? 2014 microchip technology inc. ds40001737a 159 ? pic12(l)f1612/16(l)f1613 ? 16-3 adcon2 adc ?? 2 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 u-0 u-0 u-0 u-0 trigsel<3:0> (1) ? ? ? ? bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-4 trigsel<3:0> ???? (1) 1111 = smt2_pr 1110 = smt1_pr 1101 = tmr6_postscaled 1100 = tmr4_postscaled 1011 = smt2_cpr 1010 = smt2_cpw 1001 = smt1_cpr 1000 = smt1_cpw 0111 = c2_out_sync (3) 0110 = c1_out_sync 0101 = tmr2_postscaled 0100 = t1_overflow (2) 0011 = t0_overflow (2) 0010 = ccp2_out 0001 = ccp1_out 0000 = ???? bit 3-0 ?? ? 0 ? 1 ?? 2 ?????? 1 3 pic16(l)f1613 pic12(l)f1612 ?
pic12(l)f1612/16(l)f1613 ds40001737a 160 ? ? 2014 microchip technology inc. ? 16-4 adresh adc ?? adresh adfm = 0 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u adres<9:2> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 adres<9:2> adc ? 10 ?? 8 ? 16-5 adresl adc ?? adresl adfm = 0 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u adres<1:0> ? ? ? ? ? ? bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 adres<1:0> adc ? 10 ?? 2 bit 5-0 ??
? 2014 microchip technology inc. ds40001737a 161 ? pic12(l)f1612/16(l)f1613 ? 16-6 adresh adc ?? adresh adfm = 1 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u ? ? ? ? ? ? adres<9:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-2 ?? bit 1-0 adres<9:8> adc ? 10 ?? 2 ? 16-7 adresl adc ?? adresl adfm = 1 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u adres<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 adres<7:0> adc ? 10 ?? 8
pic12(l)f1612/16(l)f1613 ds40001737a 162 ? ? 2014 microchip technology inc. 16.4 adc ?? ?? adc ????_? c hold ?????? ? 16-4 ???? r s ? r ss ?? c hold ??? r ss ? v dd ? ? 16-4 ?????? 10 k ????????? ??????? adc ? ? 16-1 ???? ? 1/2 lsb adc ?? 1,024 1/2 lsb adc ?? ? 16-1 ??? t acq amplifier settling time hold capacitor charging time temperature coefficient ++ = t amp t c t coff ++ = 2s t c temperature - 25c () 0.05s/c () [] ++ = t c c hold r ic r ss r s ++ () ln(1/2047) ? = 12.5 pf 1 k 7 k 10 k ++ () ? ln(0.0004885) = 1.12 =s v applied 1e tc ? rc --------- ? ?? ?? ?? v applied 1 1 2 n1 + () 1 ? -------------- ------------ ? ?? ?? = v applied 1 1 2 n1 + () 1 ? ------------- ------------- ? ?? ?? v chold = v applied 1e t c ? rc --------- - ? ?? ?? ?? v chold = [1] v chold 1/2 lsb ? [2] ? v applied v chold ? [1] [2] t c ?1??? t c ? temperature 50c and external impedance of 10k 5.0v v dd = s ? n = adc t acq 2s 1.12 s 50c- 25c () 0.05 s/c () [] ++ = 4.37 s = ? = 50c ?? 10 k v dd ? 5.0v ??? + ??? + ?? = 2 s + tc + [( ? - 25c )( 0.05 s/c )] ? 1 ?? v rpos ????? 2 _? c hold ????? 3 ?????? 10 k ????Z
? 2014 microchip technology inc. ds40001737a 163 ? pic12(l)f1612/16(l)f1613 ? 16-4 ?? ? 16-5 adc ? v dd ?3 eg96? c pin 5 pf v t ? 0.6v v t ? 0.6v i leakage (1) r ic ? 1 k "?? c hold = g? / ?+ ? c pin = eg9+ ? i leakage = + ?e2y&? 6?t{*,x"?$?+ # r ic = (ycd4?1+ l r ss = g? ?g,x+ l ss = g? ?g v t = k+ _ va r s r ss ss g? ?g c hold =10pf ref- 567891011 2v 3v 4v 5v 6v v dd r ss g? ?g ? k ? ? rev. 10-000070a 8/2/2013 ? 1 28.0 Z 3ffh 3feh adc 3fdh 3fch 03h 02h 01h 00h 3fbh 0.5 lsb ref- ref+ 1.5 lsb ??
pic12(l)f1612/16(l)f1613 ds40001737a 164 ? ? 2014 microchip technology inc. 16-3 adc ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? adcon0 ? chs<4:0> go/done adon 157 adcon1 adfm adcs<2:0> ? ? adpref<1:0> 158 adcon2 trigsel<3:0> ? ? ? ? 159 adresh adc ??? 160 , 161 adresl adc ??? 160 , 161 ansela ? ? ?ansa4 ? ansa2 ansa1 ansa0 132 anselc (2) ? ? ? ? ansc3 ansc2 ansc1 ansc0 139 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 pie1 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie 79 pir1 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if 83 trisa ? ? trisa5 trisa4 ?(1) trisa2 trisa1 trisa0 131 trisc (2) ? ? trisc5 trisc4 trisc3 trisc2 trisc1 trisc0 138 fvrcon fvren fvrrdy tsen tsrng cdafvr<1:0> adfvr<1:0> 148 ?? x = ? u = ? ? = ??? 0 q = ??? adc ???? ? 1 ??? 1 2 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 165 ? pic12(l)f1612/16(l)f1613 17.0 8 ?? dac1 ? ???????? 256 ?? dac ? ? ? v ref ? v dd ? ? ?? fvr dac ???? ? ? ? adc ? ? dac x out1 ?? dac ? dac1con0 ? dac1en 1 ?? 17.1 ?? dac 256 ? 256 ?? dac1con1 ? dac1r<7:0> ? dac ? ? 17-1 ? ? 17-1 dac ? 17.2 ? dac ????? ???????? ????? dac ? ?? 28.0 Z ?? ? 17.3 dac ? ? dac1con0 ? dac1oe1 1 dac ? dacxout1 ?? dac ? dac x out1 ?? ???? dac x out1 ?? dac ???? 0 ?? dac ? dac x out1 ?? ? 17-2 ?? dac1en = 1 v source + = v dd v ref fvr 2 v source - = v ss v out v source +v source - ? () dac1r 7:0 [] 2 8 --------------------------------- ?? ?? v source - + =
pic12(l)f1612/16(l)f1613 ds40001737a_cn 166 ? ? 2014 microchip technology inc. ? 17-1 ??? ? 17-2 ?? v ref + v dd v sour ce + v sour ce - v ss r 256 l
r r r r r r 256ey 1 ?c??g?mux? 7?a? dacxout1 (1) dacoe1 dacx eg? dacen dacr<7:0> 8 "? 1  dacxout6?ot44??,xdacxeg?? rev. 10 -000 026c 12 /9/201 3 00 11 10 01 fvr 4??  2 +- dacpss ? 1 dac x out1 dac + ? dac ? ? r pic ? mcu
? 2014 microchip technology inc. ds40001737a_cn 167 ? pic12(l)f1612/16(l)f1613 17.4 ?? ?????? ? dac1con0 ????? ????????? 17.5 ? ?? ? dac ? ? dac ? dac x out1 ?? ? dac1r<7:0> ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 168 ? ? 2014 microchip technology inc. 17.6 ? dac 17-1 dac1 ???? ? 17-1 dac1con0 ??? 0 r/w-0/0 u-0 r/w-0/0 u-0 r/w-0/0 r/w-0/0 u-0 u-0 dac1en ? dac1oe1 ? dac1pss<1:0> ? ? bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 dac1en dac1 ? 1 = ? dac 0 = ? dac bit 6 ?? ? 0 bit 5 dac1oe1 dac1 ? 1 ? 1 = dac ?? dacxout1 0 = dac ? dacxout1 ?? bit 4 ?? ? 0 bit 3-2 dac1pss<1:0> dac1 ??? 11 = ?? 10 = fvr 2 01 = v ref + 00 = v dd bit 1-0 ?? ? 0 ? 17-2 dac1con1 ??? 1 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 dac1r<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 dac1r<7:0> dac1 ?? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? fvrcon fvren fvrrdy tsen tsrng cdafvr<1:0> adfvr<1:0> 148 dac1con0 dac1en ? dac1oe1 ? dac1pss<1:0> ? ? 168 dac1con1 dac1r<7:0> 168 ?? ? = ?? 0 dac ????
? 2014 microchip technology inc. ds40001737a_cn 169 ? pic12(l)f1612/16(l)f1613 18.0 ?? ????????? ???????? ???????? ??????? ? ? ?? ? ?? ? ?? / ????? ? ? ? ? ? ?? ? ??? / ? ? pwm ? ? ????? 18.1 ? ? 18-1 ?????? ??? v in + ??? v in - ?? ??????? v in + ?? ? v in - ??????? ? 18-1 ???? ? 18-1 ? 18-1 ???? c1 c2 pic16(l)f1613 ?? pic12(l)f1612 ? ? + v in + v in - v in + v in - ? ????? ?????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 170 ? ? 2014 microchip technology inc. ? 18-2 ?????? rev. 10 -000 027d 12 /19 /201 3 cxin0- cxin1- cxin+ fvr 4??  2 dac eg? + cxvn cxvp cxpch<1:0> cxnch<2:0> 2 3 cxon (1) cxon (1) cxon (1) cxsp cxhys ? t "? dq q1 cxintp cxintn cxout mcxout dq 0 1 cxsync  cxif !5b 1 tris ! cxout cxout_sync cxoe - ? ?l!"? fvr 4??  2 cxpol cx ?97? timer1 ? +? t1clk 7?a? "? 1 ?' cxon = 0 y?c??geg9f??>??j!ew <{* 0 eg?? . 2 ??l$ pic16(l)f1613 ? 000 011 010 001 100 101 110 111 +- +- 00 11 10 01 cxin2- (2) cxin3- (2)
? 2014 microchip technology inc. ds40001737a_cn 171 ? pic12(l)f1612/16(l)f1613 18.2 ? ?? 2 ?? cmxcon0 cmxcon1 cmxcon0 ? ? 18-1 ??? ? ? ? ? ? ? ? ? / ? ? ?? ? ? cmxcon1 ? ? 18-2 ? ? ? ?? ? ??? ? ?? 18.2.1 ?? cmxcon0 ? cxon 1 ??? cxon ????? ? 18.2.2 ?? ? cmxcon0 ? cxout cmout ? mcxout ???? ?? ? ? cmxcon0 ? cxoe 1 ? ? tris ? ? cmxcon0 ? cxon 1 18.2.3 ? ?????? ? cmxcon0 ? cxpol 1 ? ??? cxpol ?? ?? 18-2 ???? ? 18.2.4 ?? / ? ???? cxsp ??? ?????? 1 ???? ?? cxsp ??? ?? ? 1 cmxcon0 ? cxoe ?? cmxcon0 ? cxon 1 ?????? 2 ????? ?? 18-2 ??? cxpol cxout cxv n > cxv p 00 cxv n < cxv p 01 cxv n > cxv p 11 cxv n < cxv p 10
pic12(l)f1612/16(l)f1613 ds40001737a_cn 172 ? ? 2014 microchip technology inc. 18.3 ?? ??????? ??????? cmxcon0 ? cxhys 1 ?? ? 28.0 Z 18.4 timer1 ?? ? timer1 ?? ? 21.5 ? timer1 ?? ? ??????? q? timer1 ?? ??? timer1 18.4.1 ?? ? cmxcon0 ? cxsync 1 ? ? timer1 ? ???? ? timer1 ?? ?? timer1 ???? ?????? timer1 ???? timer1 ????? ? ? 18-2 timer1 ? ? 21-1 18.5 ? ?????? ???? ??? 1 cmxcon1 ? cxintp / cxintn ??? pir2 ? cxif 1 ??? 1 ? cmxcon0 ? cxon cxpol cxsp ? pie2 ? cxie ? cmxcon1 ? cxintp ?? ? cmxcon1 ? cxintn ??? ? intcon ? peie gie ?? pir2 ? cxif ??????? ??? 1 18.6 ??? ? cmxcon1 ? cxpch<2:0> ?????? ? cxin+ ? ? dac ? ?? fvr ? v ss ? ?????? 14.0 ?? fvr dac ???? 17.0 ? 8 ?? dac1 ?B ??? cxon = 0 ??? ?? 18.7 ?? cmxcon1 ? cxnch<2:0> ??? ?????? ? cxin- ? ? ? fvr 2 ????? ????????? ? ? ?????? cmxcon0 ? cxpol ??? cmxcon0 ? cxon ??? ? ? ? cxiny+ cxiny- ?? ? ansel ?? 1 ? ???? tris 1 ?
? 2014 microchip technology inc. ds40001737a_cn 173 ? pic12(l)f1612/16(l)f1613 18.8 ??? ?????????? ?????????? ??????????? ???????? ???? 28.0 Z ????Z 18.9 ?? ???? ? 18-3 ?? ?? v dd v ss ? ?? esd ???? v ss v dd ????? ? 0.6v ???? ? ?????? 10 k ?? ??? ??? ?? ???? ? 18-3 ?? ? 1 ?????? ?? 0 ?? Z???? 2 ????? ????? v a r s < 10k v dd ?3 eg96? c pin 5 pf v t ? 0.6v v t ? 0.6v i leakage (1) v ss r ic 7?!ew < "?? c pin = eg9+ ? i leakage = + ?e2y&? 6?t{*,x"?$?+ # r ic = (ycd4?1+ l r s =  ?$dlk v a = ?3+ _ v t = k+ _ rev. 10-000071a 8/2/2013 ? 1 28.0 Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 174 ? ? 2014 microchip technology inc. 18.10 ?? ? 18-1 cmxcon0 ? cx ?? 0 r/w-0/0 r-0/0 r/w-0/0 r/w-0/0 u-0 r/w-1/1 r/w-0/0 r/w-0/0 cxon cxout cxoe cxpol ? cxsp cxhys cxsync bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 cxon ?? 1 = ??? 0 = ?? bit 6 cxout ? cxpol = 1 ?? 1 = cxvp < cxvn 0 = cxvp > cxvn cxpol = 0 ?? 1 = cxvp > cxvn 0 = cxvp < cxvn bit 5 cxoe ?? 1 = cxout cxout ?? tris ??? cxon ?? 0 = cxout ? bit 4 cxpol ?? 1 = ? 0 = ?? bit 3 ?? ? 0 bit 2 cxsp ?? / ? 1 = ???? 0 = ?????? bit 1 cxhys ??? 1 = ???? 0 = ??? bit 0 cxsync ???? 1 = ? timer1 i/o ??? timer1 ???? timer1 ?? ??? 0 = ? timer1 i/o ????
? 2014 microchip technology inc. ds40001737a_cn 175 ? pic12(l)f1612/16(l)f1613 ? 18-2 cmxcon1 ? cx ?? 1 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 c1intp c1intn c1pch<1:0> ? c1nch<2:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 cxintp ?? 1 = cxout ? cxif ?? 1 0 = cxout ? cxif ?? 1 bit 6 cxintn ?? 1 = cxout ?? cxif ?? 1 0 = cxout ?? cxif ?? 1 bit 5-4 cxpch<1:0> ???? 11 = cxvp ? agnd 10 = cxvp ? fvr 2 01 = cxvp ? v dac 00 = cxvp ? cxin+ bit 3 ?? ? 0 bit 2-0 cxnch<2:0> ??? 111 = cxvn ? agnd 110 = cxvn ? 101 = cxvn ? 100 = 011 = cxvn ? cxin3- (1) 010 = cxvn ? cxin2- (1) 001 = cxvn ? cxin1- 000 = cxvn ? cxin0- ? 1 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 176 ? ? 2014 microchip technology inc. 18-3 ????? ? 18-3 cmout ?? u-0 u-0 u-0 u-0 u-0 u-0 r-0/0 r-0/0 ? ? ? ? ? ? mc2out (1) mc1out bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-2 ?? ? 0 bit 1 mc2out c2out ??? (1) bit 0 mc1out c1out ??? ? 1 pic16(l)f1613 pic12(l)f1612 ?? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? ansela ? ? ? ansa4 ? ansa2 ansa1 ansa0 132 cm1con0 c1on c1out c1oe c1pol ? c1sp c1hys c1sync 174 cm1con1 c1intp c1intn c1pch<1:0> ?c1nch<2:0> 175 cm2con0 (2) c2on c2out c2oe c2pol ? c2sp c2hys c2sync 174 cm2con1 (2) c2intp c2intn c2pch<1:0> ?c2nch<2:0> 175 cmout ? ? ? ? ? ?mc2out (2) mc1out 176 fvrcon fvren fvrrdy tsen tsrng cdafvr<1:0> adfvr<1:0> 148 dac1con0 dac1en ?dac1oe1 ? dac1pss<1:0> ? ? 168 dac1con1 dac1r<7:0> 168 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 pie2 ?c2ie (2) c1ie ? ? tmr6ie tmr4ie ccp2ie 80 pir2 ?c2if (2) c1if ? ? tmr6if tmr4if ccp2if 84 trisa ? ? trisa5 trisa4 ? (1) trisa2 trisa1 trisa0 131 trisc (2) ? ? trisc5 trisc4 trisc3 trisc2 trisc1 trisc0 138 ?? ? = ?? 0 ????? ? 1 ??? 1 2 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 177 ? pic12(l)f1612/16(l)f1613 19.0 zcd ? zcd ??????????? ??? v cpinv ??? 0.75v ?????? zcd ? ???? ??????? esd ? ????????? ???????? ??????? ??? ? 19-2 zcd ????? zcd ? ???? ??? ? ? ? ??? ? ? ? emi 19.1 ?? zcd ?????? ????????? ??? 300 a ? ???? ??? ? 19-1 ? 19-1 ?? zcd i/o ??? ? 19-1 ? ? 19-1 ?? ? 19-2 zcd ? r series v peak 3 4 ? 10 ---------------- - = v peak v cpinv v maxpeak v minpeak rev. 10 -000 194a 1/14 /201 4 - + zcpinv v dd zcdxin v pullup f? + _$d r pulldown ?ey ?ey r pullup zcdxpol dq zcdx_output zcdxout ! q1 zcdxoe zcdxout 6? zcdxintp zcdxintn ? ?# ? ?#  zcdif ??!5b 1 r series
pic12(l)f1612/16(l)f1613 ds40001737a_cn 178 ? ? 2014 microchip technology inc. 19.2 zcd ? zcd ??????? ?????? ? zcdxcon ? zcdxout 1 ????? zcdxout ??? 19.3 zcd ? zcdxcon ? zcdxpol ? zcdxout ?? zcdxpol 1 ? zcdxout ??????? ??????? zcdxpol ? zcd ? 19.4 zcd ? 19.4 zcd ?? 1 zcd ? ??? zcd ?? ??? ??? 1 ? pir3 ? zcdif 1 zcdxintp ? zcdxintn ?? ? zcdxcon ? ???? 1 ? pie3 ? zcdie ? zcdxcon ? zcdxintp ?? ? zcdxcon ? zcdxintn ??? ? intcon ? peie gie zcdxpol ?? zcdxen ?? ???? pir3 ? zcdif ?????? ???? 1 19.5 v cpinv ? zcd ??? zcd ???? ??????? ?????1?? ? v ss ???? ???????? ? v dd ?? ????????? ??? ? 19-2 ???? ????? ? 19-2 zcd ?? ??? zcd ? ???? v ss ?? ?? v dd ?? zcd ???????? ????????? v cpinv ??? ? 19-3 ? 19-4 ???? ? 19-3 zcd / t offset vcpinv v peak ----------------- - ?? ?? asin 2 freq ? ------------------- --------------- = ??? vss ? t offset v dd vcpinv ? v peak ------------------- ------------- ?? ?? asin 2 freq ? ------------------ ------------------ ------------ - = ??? v dd ? ? ? r pullup r series v pullup v cpinv ? () v cpinv ------------------------------------------------------------------------ = ?? vss ? ?? v dd ? r pulldown r series v cpinv () v dd v cpinv ? () ------------------------------------------- - =
? 2014 microchip technology inc. ds40001737a_cn 179 ? pic12(l)f1612/16(l)f1613 v cpinv ??? v cpinv ??? ?? v dd ? ?? ? 19-2 ? 19-3 ? zcdx_output ???????? ? ??? t 4*t offset ? 19-4 ??????? zcdx_output ? ???? zcdxoe 1 ? zcdxout ?? zcdx_output ?? ? 19-4 19.6 v peak ???????? ? zcd ?? 600 a ????? ????? 6 ?? 600 a ?? 100 a ? ? 19-5 ?????? ? ? 19-3 ???? ??? ? 19-5 ? v ? r 19.7 ?? zcd ???? 19.8 ? zcd ???y por ? ? ???? zcddis ? zcd por ???? zcddis 1 ?? zcdxcon ? zcdxen 1 ? zcd ? rr series v bias v peak freq t () 2 ----------- - ?? ?? sin ?? ?? ---------------------------------------------------------------- > ? ?? ?? ?? ?? ?? = r ? v bias ? v pullup r ?? v dd r ?? t ? zcdxout ???????? r series v maxpeak v minpeak + 7 4 ? 10 -------------------- --------------------- ---------------- =
pic12(l)f1612/16(l)f1613 ds40001737a_cn 180 ? ? 2014 microchip technology inc. 19.9 ? zcd 19-1 zcd ???? 19-2 zcd ??? ? 19-1 zcdxcon ?? r/w-q/q r/w-0/0 r-x/x r/w-0/0 u-0 u-0 r/w-0/0 r/w-0/0 zcdxen zcdxoe zcdxout zcdxpol ? ? zcdxintp zcdxintn bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ?? bit 7 zcdxen ? 1 = ??? zcd ??? 0 = ?? zcd ? pps tris ? bit 6 zcdxoe ? 1 = ? zcd 0 = ? zcd bit 5 zcdxout ?? zcdxpol = 0 1 = zcd ? 0 = zcd ? zcdxpol = 1 1 = zcd ? 0 = zcd ? bit 4 zcdxpol ? 1 = zcd ? 0 = zcd ? bit 3-2 ?? ? 0 bit 1 zcdxintp ? 1 = zcdx_output ??????? zcdif 1 0 = zcdx_output ??????? zcdif ? bit 0 zcdxintn ?? 1 = zcdx_output ??????? zcdif 1 0 = zcdx_output ??????? zcdif ? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? pie3 ? ? cwgie zcdie ? ? ? ? 81 pir3 ? ? cwgif zcdif ? ? ? ? 85 zcd1con zcd1en zcd1oe zcd1out zcd1pol ? ? zcd1intp zcd1intn 180 ?? ? = ?? 0 zcd ???? bit -/7 bit -/6 bit 13/5 bit 12/4 bit 11/3 bit 10/2 bit 9/1 bit 8/0 ? ? config2 13:8 ? ? lvp debug lpbor borv stvren pllen 49 7:0 zcddis ? ? ? ? ? wrt<1:0> ?? ? = ?? 0 zcd ????
? 2014 microchip technology inc. ds40001737a_cn 181 ? pic12(l)f1612/16(l)f1613 20.0 timer0 ? timer0 ? 8 ? / ? ? 8 ? / ? tmr0 ? 3 ?? ??? ? ????? ? ????? ? ? ? tmr0 ? timer1 ? 20-1 timer0 ??? 20.1 timer0 ? timer0 ?? 8 ? 8 20.1.1 8 ??? timer0 ????? timer0 ?q ??? 8 ???? option_reg ? tmr0cs ? tmr0 ????? tmr0 20.1.2 8 ?? 8 ?? timer0 ?q t0cki ?? ??? ? t0cki ? 8 ??? option_reg ? tmr0cs ? 1 ? ??? option_reg ? tmr0se ? 20-1 timer0 ? ? tmr0 ??? ? ? tmr0 ?? rev. 10-000017a 8/5/2013 tmr0se 0 1 fosc/4 nxne < t0_overflow r m9 tmr0  tmr0if ! 5b 1 t0cki !9+ c? f osc /2 tmr0cs t0cki (1) "? 1 ? t0cki nxneeg?ne)[hcy? fosc/8 ? ps<2:0> 0 1 psa tmr0 q1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 182 ? ? 2014 microchip technology inc. 20.1.3 ???? ????? timer0 ? option_reg ? psa ??? timer0 ? 8 ???? 1:2 1:256 ???? option_reg ? ps<2:0> ?? timer0 ?? 1:1 ???? option_reg ? psa 1 ?? ? ????? tmr0 ??? ?? 20.1.4 timer0 tmr0 ? ffh 00h ? timer0 ?? tmr0 ??? intcon ? tmr0if ?? 1 ? timer0 ?? tmr0if ?? timer0 ? intcon ? tmr0ie 20.1.5 8 ??? 8 ?? t0cki ???? ???????? q2 q4 ????????? ??? 28.0 Z ? ?? 20.1.6 ?? ???? timer0 ?? ??? tmr0 ???? ? ?? wdt ??? ?? ? ??????? timer0 ????
? 2014 microchip technology inc. ds40001737a_cn 183 ? pic12(l)f1612/16(l)f1613 20.2 ??? 20-1 timer0 ??? ? 20-1 option_reg ?? r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 r/w-1/1 wpuen intedg tmr0cs tmr0se psa ps<2:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 wpuen ? 1 = ? mclr ??? 0 = ? wpux ?? bit 6 intedg ?? 1 = int ?? 0 = int ??? bit 5 tmr0cs timer0 ??? 1 = t0cki ??? 0 = ??? f osc /4 bit 4 tmr0se timer0 ??? 1 = t0cki ???? 0 = t0cki ???? bit 3 psa ?? 1 = ?? timer0 ? 0 = ?? timer0 ? bit 2-0 ps<2:0> ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? adcon2 trigsel<3:0> ? ? ? ? 159 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 option_reg wpuen intedg tmr0cs tmr0se psa ps<2:0> 183 tmr0 8 timer0 ??? 181 * trisa ? ? trisa5 trisa4 ? (1) trisa2 trisa1 trisa0 131 ?? ? = ?? 0 timer0 ???? * ???? ? 1 ??? 1 000 001 010 011 100 101 110 111 1 : 2 1 : 4 1 : 8 1 : 16 1 : 32 1 : 64 1 : 128 1 : 256 ? timer0 ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 184 ? ? 2014 microchip technology inc. 21.0 ??? timer1 ? timer1 ? 16 ? / ? ? 16 ? / ? tmr1h:tmr1l ? ????? ? 2 ?? ? ??? ? timer1 ? ??? ? ? ? ?????? ? adc ?? ? ??? ? ????? ? ???? ? ???? ? ?? ? 21-1 timer1 ??? ? 21-1 timer1 ? rev. 10 -000 018e 12 /19 /201 3 00 11 10 01 t1g t0_overflow c1out_sync c2out_sync (4) t1gss<1:0> t1gpol 0 1 )6y? g?l?{
1 0 t1gspm tmr1on t1gtm tmr1ge tmr1on d q en tmr1l tmr1h t1_overflow  tmr1if ??! 5b 1 tmr1 (2) 1 0 fosc yf?js fosc/4 yf?js lfintosc tmr1cs<1:0> 00 11 10 01 nxne < 1  2  4  8 t1sync ?,?eg9 fosc/2 yf?js t1ckps<1:0> !9,xjseg9 2 ?# !9 (3) 1 ? 's* t1cki  st 4?? <p?e _? 2 ? timer1 ?, < t "?e?r? 3 ? ?b?,??? !910? 4 ? ?l$ pic16(l)f1613 ? (1) d q ck r q "? t1ggo/done t1clk t1cki dq  tmr1gif ! 5b 1 t1gval q1 ?# ?
? 2014 microchip technology inc. ds40001737a_cn 185 ? pic12(l)f1612/16(l)f1613 21.1 timer1 ? timer1 ? 16 ? tmr1h:tmr1l ??? tmr1h tmr1l ??? timer1 ????????? ??? timer1 ???? ??????? ???? timer1 ?? t1con t1gcon ? tmr1on tmr1ge ?? 21-1 ? timer1 ?? 21.2 ??? t1con ? tmr1cs<1:0> ? timer1 ?? 21-2 ???? 21.2.1 ??? ????? tmr1h:tmr1l ??? ??? f osc ? timer1 ?? ? f osc ???? timer1 ??? ?? 4 ? ?? timer1 ?? ?? 2 lsb ? timer1 ??? ??? timer1 ? ?? ??? ? t1g ???? timer1 ? ? c1 c2 pic16(l)f1613 ? ? timer1 ? 21.2.2 ??? ????? timer1 ??? timer1 ??? ?? t1cki ? ?????????? 21-1 timer1 ?? tmr1on tmr1ge timer1 ?? 00 ? 01 ? 10 ? 11 ? ? ???? ????? ???? ? por ? timer1 ? tmr1h tmr1l ? timer1 ? ? t1cki ???? timer1 ? tmr1on = 0 ? t1cki ?? ?? timer1 ? tmr1on = 1 21-2 ??? tmr1cs<1:0> ?? 11 lfintosc 10 t1cki ???? 01 ??? f osc 00 ?? f osc /4
pic12(l)f1612/16(l)f1613 ds40001737a_cn 186 ? ? 2014 microchip technology inc. 21.3 timer1 ?? timer1 4 ???? ? 1 2 4 8 ? t1con ? t1ckps ?? ????? ?? tmr1h tmr1l ??? ? 21.4 ??? timer1 t1con ?? t1sync 1 ?? ??????? ??????? ???? ?? / ???? 21.4.1 ???? timer1 21.4.1 ???? timer1 ????? tmr1h tmr1l ??? ?? ?????? 8 ? ? 16 ?????? ? ?????? ????? ??? tmr1h:tmr1l ??? 21.5 timer1 ? timer1 ?? timer1 ???? ??? timer1 ??? timer1 ????? 21.5.1 timer1 ?? ? t1gcon ? tmr1ge 1 ? timer1 ????? t1gcon ? t1gpol timer1 ?????? ? timer1 ????? timer1 timer1 ? ??? timer1 ????? timer1 ????? ? 21-3 21.5.2 timer1 ??? 21-4 timer1 ??? ?? t1gcon ? t1gss<1:0> ????? ???? t1gcon ? t1gpol ? 21-4 timer1 ?? ? ???? ???? ?? 21-3 timer1 ??? t1clk t1gpol t1g timer1 ?? 00 01 ? 10 ? 11 t1gss timer1 ?? 00 timer1 ? t1g 01 timer0 t0_overflow tmr0 ffh 00h 10 ? 1 c1_out_sync (1) 11 ? 2 c2_out_sync (1,2) ? 1 ??? 2 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 187 ? pic12(l)f1612/16(l)f1613 21.5.2.1 t1g ?? t1g timer1 ???? timer1 ???? 21.5.2.2 timer0 ?? timer0 ffh 00h ??? ?? timer1 ?? 21.5.3 timer1 ????? ? timer1 ??????? timer1 ?? ???????? timer1 ???? timer1 ? ?????????? ? 21-4 timer1 ?????? t1gcon ? t1gtm 1 ?? t1gtm ? ?????? 21.5.4 timer1 ???? ? timer1 ????????? ?? timer1 ????? t1gcon ? t1gspm 1 ?? ? t1gcon ? t1ggo/done 1 timer1 ????? ?? t1ggo/done ? timer1 ? t1ggo/done ? 1 ??? ? 21-5 ? t1gcon ? t1gspm ? ??? t1ggo/done ?? ????????????? ?? timer1 ????? ?? ? 21-6 21.5.5 timer1 ???? ? timer1 ?????????? ?? t1gcon ? t1gval ? ? timer1 ??? tmr1ge ? t1gval ?? 21.5.6 timer1 ?? timer1 ?????? ?? t1gval ?? pir1 ? tmr1gif ? 1 pie1 ? tmr1gie 1 ??? ? timer1 ??? tmr1ge ? tmr1gif ??? ? ??????????? ??2??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 188 ? ? 2014 microchip technology inc. 21.6 timer1 timer1 ? tmr1h:tmr1l ffffh ???? 0000h timer1 ? pir1 ? timer1 ?? 1 ?? ?? 1 ? t1con ? tmr1on ? pie1 ? tmr1ie ? intcon ? peie ? intcon ? gie ? tmr1if ?? 21.7 ? timer1 ?????? timer1 ? ?1???????? ???? ? ? t1con ? tmr1on 1 ? ? pie1 ? tmr1ie 1 ? ? intcon ? peie 1 ? ? t1con ? t1sync 1 ? t1con ? tmr1cs ????? intcon ? gie 1 ? t1sync ? timer1 ??? 21.7.1 ? i/o ??????? apfcon ? i/o ????? ??????? 12.1 ?? ?? ? 21-2 timer1 ? ?? tmr1h:tmr1l ? ? tmr1if ? t1cki = 1 tmr1 ?? t1cki = 0 tmr1 ?? ? 1 ??? 2 ???????????
? 2014 microchip technology inc. ds40001737a_cn 189 ? pic12(l)f1612/16(l)f1613 ? 21-3 timer1 ???? ? 21-4 timer1 ????? tmr1ge t1gpol t1g_in t1cki t1gval timer1 n n + 1 n + 2 n + 3 n + 4 tmr1ge t1gpol t1gtm t1g_in t1cki t1gval timer1 n n + 1 n + 2 n + 3 n + 4 n + 5 n + 6 n + 7 n + 8
pic12(l)f1612/16(l)f1613 ds40001737a_cn 190 ? ? 2014 microchip technology inc. ? 21-5 timer1 ???? tmr1ge t1gpol t1g_in t1cki t1gval timer1 n n + 1 n + 2 t1gspm t1ggo/ done 1 t1gval ? t1gval ? tmr1gif t1g ? ? ? 1
? 2014 microchip technology inc. ds40001737a_cn 191 ? pic12(l)f1612/16(l)f1613 ? 21-6 timer1 ?????? tmr1ge t1gpol t1g_in t1cki t1gval timer1 nn + 1 n + 2 t1gspm t1ggo/ done 1 t1gval ? t1gval ? tmr1gif t1gtm t1g n + 4 n + 3 ? ? ? 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 192 ? ? 2014 microchip technology inc. 21.8 ? timer1 ? 21-1 t1con timer1 ?? r/w-0/u r/w-0/u r/w-0/u r/w-0/u u-0 r/w-0/u u-0 r/w-0/u tmr1cs<1:0> t1ckps<1:0> ? t1sync ?tmr1on bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-6 tmr1cs<1:0> timer1 ??? 11 = lfintosc 10 = timer1 ??? t1cki 01 = f osc 00 = f osc /4 bit 5-4 t1ckps<1:0> timer1 ???? 11 = 1:8 ?? 10 = 1:4 ?? 01 = 1:2 ?? 00 = 1:1 ?? bit 3 ?? ? 0 bit 2 t 1sync timer1 ? 1 = ??? 0 = ????? f osc ? bit 1 ?? ? 0 bit 0 tmr1on timer1 ? 1 = ? timer1 0 = ?? timer1 timer1 ??
? 2014 microchip technology inc. ds40001737a_cn 193 ? pic12(l)f1612/16(l)f1613 ? 21-2 t1gcon timer1 ???? r/w-0/u r/w-0/u r/w-0/u r/w-0/u r/w/hc-0/u r-x/x r/w-0/u r/w-0/u tmr1ge t1gpol t1gtm t1gspm t1ggo/ done t1gval t1gss<1:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = hc = ? bit 7 tmr1ge timer1 ?? tmr1on = 0 tmr1on = 1 1 = timer1 timer1 ??? 0 = timer1 timer1 ??? bit 6 t1gpol timer1 ?? 1 = timer1 ???? ?????? timer1 0 = timer1 ???? ?????? timer1 bit 5 t1gtm timer1 ????? 1 = ? timer1 ????? 0 = ? timer1 ????? timer1 ????? bit 4 t1gspm timer1 ???? 1 = ? timer1 ???? timer1 ? 0 = ? timer1 ???? bit 3 t1ggo/done timer1 ????? 1 = timer1 ?????? 0 = timer1 ????? bit 2 t1gval timer1 ???? ??? tmr1h:tmr1l timer1 ??????? timer1 ?? tmr1ge ?? bit 1-0 t1gss<1:0> timer1 ??? 11 = ? 2 ??? c2_out_sync (1) 10 = ? 1 ??? c1_out_sync 01 = timer0 t0_overflow 00 = timer1 ? t1g ? 1 pic16(l)f1613 pic12(l)f1612 ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 194 ? ? 2014 microchip technology inc. 21-5 timer1 ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? ansela ? ? ?ansa4 ? ansa2 ansa1 ansa0 132 apfcon ? cwgasel (2) cwgbsel (2) ? t1gsel ? ccp2sel (3) ccp1sel (2) 128 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 pie1 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie 79 pir1 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if 83 tmr1h 16 tmr1 ????? 188 * tmr1l 16 tmr1 ????? 188 * trisa ? ? trisa5 trisa4 ? (1) trisa2 trisa1 trisa0 131 t1con tmr1cs<1:0> t1ckps<1:0> ? t1sync ?tmr1on 192 t1gcon tmr1ge t1gpol t1gtm t1gspm t1ggo/ done t1gval t1gss<1:0> 193 ?? ? = ?? 0 timer1 ???? * ???? ? 1 ??? 1 2 pic12(l)f1612 3 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 195 ? pic12(l)f1612/16(l)f1613 22.0 timer2/4/6 ? timer2/4/6 ? 8 ?? ? 8 ??? ?? tmr2 pr2 ? ? ? ? ??? ?? 1:1 1:128 ? ???? ?? 1:1 1:16 ? tmr2 pr2 ?? ? ? ? ?? ? ??? hardware limit timer hlt ? ? ?? ? ???? ? ?? timer2 ?? ? 22-1 ? hlt timer2 ?? ? 22-2 ? 22-1 timer2 ??? ? ? 3 ? timer2 ? ?? timer2 timer4 timer6 timer2 t timer4 timer6 pr2 t pr4 pr6 rev. 10 -000 169a 12 /19 /201 3 000 011 010 001 100 101 110 111 tmr2_clk f osc f osc /4 mfintosc zcd1_output lfintosc hfintosc t x in +- txclkcon
pic12(l)f1612/16(l)f1613 ds40001737a_cn 196 ? ? 2014 microchip technology inc. ? 22-2 ??? hlt timer2 ?? rev. 10 -000 168a 1/22 /201 4 mode< 3 > #l on tmrx !ew < prx cksync on outps< 3 : 0 > ane <  tmrxif ??! 5b 1 tmrx_postscaled ckpol 4 mode< 3 : 0 > psync nxne < ckps< 2 : 0 > 3 tmrx_clk rsel r !9 ? 2 tjs? e?"??# < + g?# < ??{
? 2 tjs
<? a? ??? txrst ?, < tmrx_ers 0 1 1 0 "? 1 ?  ? ccp ? ?9?o pwm 6y?? 2 ? a? ???1 22.5 8v9? a  tmr ??? ccp xf,xaa? s6? ! !9 fosc/4 dq ccp_pset 22.5 ?? ??? tmr ?? ccp ?
? 2014 microchip technology inc. ds40001737a_cn 197 ? pic12(l)f1612/16(l)f1613 22.1 timer2 ? ?? 7 / ??????? ??? 128 ??? txcon ?? ckps<2:0> ? ??? tmr2 ??? pr2 ???????? tmr2 ???? 00h / ? 22.2 ? timer2 ? ?? ???? 22.4 ?? ? tmr2 pr2 ????? ? tmr2 ?? pr2 ??? ffh ?????? ? ? tmr2 ? ? t2con ? ? ?y por ? ?? bor ? mclr ? ?? wdt ? ?y ? ?y ? reset ? ? ?????? 22.2 timer2 timer2 ??? ? 16 ?? 1:1 1:16 ????? ??? t2con ??? outps<3:0> ???? pie1 ? tmr2 ? tmr2ie 1 ?? ? 22-3 ? ? 22-3 timer2 ????? ? t2con ? tmr2 ? tmrx_clk prx tmrx 1 0 ckps 0b010 tmrx_postscaled outps 2 1 0 1 0 1 0 tmrxif "? 1 ????!5b 1 a??js !9?  !9 ?6?l??u?e? 2 t??
<? (1)
pic12(l)f1612/16(l)f1613 ds40001737a_cn 198 ? ? 2014 microchip technology inc. 22.3 timer2 timer2 ?? tmr2_postscaled ? ? outps tmr2xcon ?? tmr2_clk ?^ pr2 ?? tmr2 ? pr2 ??????? ?? ? crc ?????? ? adc ????? ? smt ??? / ? ? cwg ???? ? ccp ? pwm ???? timer2 ? tmr2 ????? ccp ????? pwm ?? ? timer2 ccp ?? ? 23.4 ? ccp/pwm ?? ? timer2 ??? ccp pwm ? 22.5 ? ?? 22.4 ?? ???? timer2 ??? timer2 timer4 timer6 ???? t2rst t4rst t6rst ???????? ????????? ????? tmrxhlt ? mode<3:0> ? 22.4.1 ??? tmrxhlt ? mode<3> ???? ????? 1 ? ???????? prx ???????? ???? 22.5 ? ????? - ??????? 1:1 txcon ckps outps ? - ???? f osc /4 ? ??? on timer2_ers ?????? f osc /4 ? timer2_ers ??? ? 1 ?? on ??? -on timer2_ers ????? ?????? ? - ?? pwm ??? pwm ?? ccp ? pwm ? 23.4 ? ccp/pwm ?? ?? timer2 ???
? 2014 microchip technology inc. ds40001737a_cn 199 ? pic12(l)f1612/16(l)f1613 22.5.1 ??? ????? timer2 on = 1 ?? ??? on = 0 ? ? tmrx prx ??? ??? 0 ? ? 22-4 ? on ?? prx = 5 ? ?? tmrx = 5 ???? 0 ? 22-4 timer2 ?? = 0000 ??? rev. 10 -000 195a 12 /20 /201 3 tmrx_clk ?? (1) on prx tmrx tmrx_postscaled bs f bcf bs f 5 0 12345012 2 345 mode 0b0000 3 4 5 0 1 0 1 pwm 40n! 3 pwm eg? "? 1 ? bsf
` bcf ?><+ cpu ;> ,x!5b 1 [??
`!#l[??*95b 1 #l txcon ,x $$$$  on !? cpu ;> an <jseg9?!9?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 200 ? ? 2014 microchip technology inc. 22.5.2 ???? ??????????? tmrx_ers ???????? ccp ????? pwm ?? pwm ?????????? mode<3:0> = 0001 ?????? ???? mode<3:0> = 0010 ??? ??????? ? 22-5 ? mode<3:0> = 0001 ????? ??????? ? 22-5 timer2 ?? = 0001 ??? rev. 10 -000 196a 12 /20 /201 3 tmrx_clk tmrx_ers prx tmrx tmrx_postscaled 5 mode 0b0001 0123450123450 1 pwm 40n! 3 pwm eg?
? 2014 microchip technology inc. ds40001737a_cn 201 ? pic12(l)f1612/16(l)f1613 22.5.3 ???? ????????? ? tmrx_ers ????? 3 ? ? ??? mode<3:0> = 0011 ? ? mode<3:0> = 0100 ? ?? mode<3:0> = 0101 ? pwm ?? ccp ??? ????? pwm ^ ? 22-6 ? 22-6 timer2 ?? = 0100 ??? rev. 10 -000 197a 12 /20 /201 3 tmrx_clk on prx tmrx bs f bcf bs f 5 012 0 123450 450 mode 0b0100 tmrx_ers 1 2 3 1 tmrx_postscaled pwm 40n! 3 pwm eg? ?? (1) "? 1 ? bsf
` bcf ?><+ cpu ;> ,x!5b 1 [??
`!#l[??*95b 1 $$$$$$ #l txcon ,x on !? cpu ;> an <jseg9?!9?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 202 ? ? 2014 microchip technology inc. 22.5.4 ???? ????????? tmrx_ers ?????? ? 22-7 ?? mode<3:0> = 0110 ????? ????? mode<3:0> = 0111 ? ?????????? tmrx_ers = 1 ? on bsf bcf ? ? on = 0 ?????? ccp ???? pwm ????? ?????? prx ?? ? pwm ??? pwm ?? ??????????? ccprx ???? ? 22-7 timer2 ?? = 0111 ??? rev. 10 -000 198a 12 /20 /201 3 tmrx_clk on prx tmrx bs f bcf bs f 5 012 0 123 4 5 123 mode 0b0111 tmrx_ers 0 0 4 tmrx_postscaled 50 pwm 40n! 3 pwm eg? ?? (1) "? 1 ? bsf
` bcf ?><+ cpu ;> ,x!5b 1 [??
`!#l[??*95b 1 #l txcon ,x on !? cpu ;> an <jseg9?!9?
? 2014 microchip technology inc. ds40001737a_cn 203 ? pic12(l)f1612/16(l)f1613 22.5.5 ??? ?????? prx ??? ?? on ? on 1 ??? mode<3:0> = 1000 ???? ? 22-8 ?? on bsf bcf ???? bsf ?? on 1 ? on ?? bsf ?? bcf/bsf ?? ????? ??? ccp pwm ?? pwm on 1 ?? pwm ??? on ? pwm pwm ??? ccprx ???? pwm ????? on 1 ??? ccprx ?? prx ??? on pwm ???? on ???? on prx ?????? on 1 ??? ? 22-8 timer2 ?? = 1000 ??? rev. 10 -000 199a 12 /20 /201 3 tmrx_clk on prx tmrx bs f bs f 5 0 12345 0 4 3 1 mode 0b1000 2 5 0 tmrx_postscaled bcf bs f pwm 40n! 3 pwm eg? "? 1 ? bsf
` bcf ?><+ cpu ;> ,x!5b 1 [??
`!#l[?? *95b 1 #l txcon ,x on !? cpu ;> an <jseg9?!9? ?? (1)
pic12(l)f1612/16(l)f1613 ds40001737a_cn 204 ? ? 2014 microchip technology inc. 22.5.6 ???? on 1 ???????? ????? prx ??? on ??? ? mode<3:0> = 1001 ? ? mode<3:0> = 1010 ? ?? mode<3:0> = 1011 ? on ? on 1 ?? tmrx_ers ? ? 22-9 ? ????? ?? ccp ?????? pwm pwm ?? ccprx ?????? prx ?? ?? ? 22-9 timer2 ?? = 1001 ??? rev. 10 -000 200a 12 /20 /201 3 tmrx_clk on prx tmrx bs f bs f 5 0 12345 0 1 mode 0b1001 2 tmrx_out tmrx_postscaled bcf tmrx_ers pwm 40n! 3 pwm eg? ?? (1) "? 1 ? bsf
` bcf ?><+ cpu ;> ,x!5b 1 [??
`!#l[??*95b 1 #l txcon ,x on !? cpu ;> an <jseg9?!9?
? 2014 microchip technology inc. ds40001737a_cn 205 ? pic12(l)f1612/16(l)f1613 22.5.7 ?????? ???????? on 1 ???????? ? on 1 ??? ??? ?????? ? ? mode<3:0> = 1100 ? ?? mode<3:0> = 1101 ?? prx ????? on ? on 1 ?? ??? ? 22-10 ?? ? ?? ccp ???? ??? pwm ? ccprx ??? pwm ? ?????? prx ? ???????????? ? 22-10 timer2 ?? = 1100 ??? tmrx_clk on prx tmrx bs f bs f 5 012345 0 0 1 mode 0b1100 2 tmrx_postscaled tmrx_ers 1 2 3 4 5 0 pwm 40n! 3 pwm eg? ?? (1) "? 1 ? bsf
` bcf ?><+ cpu ;> ,x!5b 1 [??
`!#l[??*95b 1 #l txcon ,x on !? cpu ;> an <jseg9?!9?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 206 ? ? 2014 microchip technology inc. 22.5.8 ?????? ????????? ?????????? ?? ? ?? mode<3:0> = 1110 ? ?? mode<3:0> = 1111 ? prx ??? ?? on ?? on prx ? ? on 1 ?????? ???? ccp pwm ? ? pwm ?????? pwm ?? ccprx ??? prx ?? ? pwm ? 22-11 timer2 ?? = 1110 ??? 22.6 ? timer2 psync = 1 ????? timer2 ????? tmr2 pr2 ??? psync = 0 ??????? timer2 ???1? lfintosc mfintosc hfintosc ?????? ?? tmrx_clk on prx tmrx bs f bs f 5 012345 0 0 1 mode 0b1110 tmrx_postscaled tmrx_ers 1 2 3 4 0 pwm 40n! 3 pwm eg? 5 ?? (1) "? 1 ? bsf
` bcf ?><+ cpu ;> ,x!5b 1 [??
`!#l[??*95b 1 #l txcon ,x on !? cpu ;> an <jseg9?!9?
? 2014 microchip technology inc. ds40001737a_cn 207 ? pic12(l)f1612/16(l)f1613 22.7 ? timer2/4/6 ? 22-1 txclkcon timerx ??? u-0 u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? ? txcs<2:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-3 ?? ? 0 bit 2-0 txcs timerx ?? 111 = 110 = txin 101 = mfintosc 31.25 khz 100 = zcd_output 011 = lfintosc 010 = hfintosc 16 mhz 001 = f osc 000 = f osc /4
pic12(l)f1612/16(l)f1613 ds40001737a_cn 208 ? ? 2014 microchip technology inc. ? 22-2 txcon timerx ?? r/w/hc-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 on (1) ckps<2:0> ou tps<3:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = hc = ? bit 7 on timerx ? 1 = timerx 0 = ? timerx ??? bit 6-4 ckps<2:0> timer2 ???? 111 = 1:128 ?? 110 = 1:64 ?? 101 = 1:32 ?? 100 = 1:16 ?? 011 = 1:8 ?? 010 = 1:4 ?? 001 = 1:2 ?? 000 = 1:1 ?? bit 3-0 outps<3:0> timerx ?? 1111 = 1:16 ? 1110 = 1:15 ? 1101 = 1:14 ? 1100 = 1:13 ? 1011 = 1:12 ? 1010 = 1:11 ? 1001 = 1:10 ? 1000 = 1:9 ? 0111 = 1:8 ? 0110 = 1:7 ? 0101 = 1:6 ? 0100 = 1:5 ? 0011 = 1:4 ? 0010 = 1:3 ? 0001 = 1:2 ? 0000 = 1:1 ? ? 1 ??? on ??? 22.4.1 ???
? 2014 microchip technology inc. ds40001737a_cn 209 ? pic12(l)f1612/16(l)f1613 ? 22-3 txhlt timerx ??? r/w-0/0 r/w-0/0 r/w-0/0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 psync (1, 2) ckpol (3) cksync (4, 5) ? mode<3:0> (6, 7, 8) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 psync timerx ???? (1, 2) 1 = tmrx ?? fosc/4 ? 0 = tmrx ?? fosc/4 ? bit 6 ckpol timerx ??? (3) 1 = ? / ?????? 0 = ? / ????? bit 5 cksync timerx ??? (4, 5) 1 = on ? tmr2_clk ? 0 = on ? tmr2_clk ? bit 4 ?? ? 0 bit 3-0 mode<3:0> timerx ??? (6, 7, 8) mode<3> = 1 ??? ??? on ???? tmrx tmrx = prx ? ? on 1 ????? on tmrx_ers ?? 1111 = tmrx_ers ????? tmrx_ers = 1 ?? 1110 = tmrx_ers ???? tmrx_ers = 0 ?? 1101 = ???? tmrx_ers ??? tmrx_ers ?? 1100 = ???? tmrx_ers ?? tmrx_ers ? 1011 = tmrx_ers ?????? 1010 = tmrx_ers ????? 1001 = tmrx_ers ???? 1000 = ? on = 1 ? ? mode<3> = 0 ????? tmrx = prx ? tmrx ? on 1 ??? 0111 = ? tmrx_ers = 1 ? 0110 = ? tmrx_ers = 0 ? 0101 = ? tmrx_ers ?? 0100 = ? tmrx_ers ? 0011 = ? tmrx_ers ??? 0010 = ? on = 1 tmrx_ers = 0 ? tmrx_ers = 1 ??? 0001 = ? on = 1 tmrx_ers = 1 ? tmrx_ers = 0 ??? 0000 = ? on = 1 ? ? ? 1 1 ?? tmrx ?? 2 ? 1 ? timer2 ???1 3 ? on = 1 ? ckpol 4 1 ???? on ???? 5 1 ? tmrx ???? 6 ??? on = 1 ? on = 0 ??? ??? tmrx ? 7 tmrx = prx ???? tmrx ??? 8 ?? ??? on = 0 ???????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 210 ? ? 2014 microchip technology inc. ? 22-4 t2rst timer2 ???? u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? rsel<3:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-4 ?? ? 0 bit 3-0 rsel<3:0> timer2 ???? 1111 = 1110 = 1101 = 1100 = cwgd 1011 = cwgc 1010 = cwgb 1001 = cwga 1000 = zcd1_output 0111 = tmr6_postscaled 0110 = tmr4_postscaled 0101 = 0100 = ccp2_out 0011 = ccp1_out 0010 = c2_out_sync (1) 0001 = c1_out_sync 0000 = t2in ? 1 pic16(l)f1613 pic12(l)f1612 ?
? 2014 microchip technology inc. ds40001737a_cn 211 ? pic12(l)f1612/16(l)f1613 ? 22-5 t4rst timer4 ???? u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? rsel<3:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-4 ?? ? 0 bit 3-0 rsel<3:0> timer4 ???? 1111 = 1110 = 1101 = 1100 = cwgd 1011 = cwgc 1010 = cwgb 1001 = cwga 1000 = zcd1_output 0111 = tmr6_postscaled 0110 = 0101 = tmr4_postscaled 0100 = ccp2_out 0011 = ccp1_out 0010 = c2_out_sync (1) 0001 = c1_out_sync 0000 = t4in ? 1 pic16(l)f1613 pic12(l)f1612 ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 212 ? ? 2014 microchip technology inc. ? 22-6 t6rst timer6 ???? u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? rsel<3:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-4 ?? ? 0 bit 3-0 rsel<3:0> timer6 ???? 1111 = 1110 = 1101 = 1100 = cwgd 1011 = cwgc 1010 = cwgb 1001 = cwga 1000 = zcd1_output 0111 = 0110 = tmr4_postscaled 0101 = tmr2_postscaled 0100 = ccp2_out 0011 = ccp1_out 0010 = c2_out_sync (1) 0001 = c1_out_sync 0000 = t6in ? 1 pic16(l)f1613 pic12(l)f1612 ?
? 2014 microchip technology inc. ds40001737a_cn 213 ? pic12(l)f1612/16(l)f1613 22-1 timer2 ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? ccp1con en oe out fmt ccp1m<3:0> 223 ccp2con en oe out fmt ccp2m<3:0> 223 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 pie1 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie 79 pir1 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if 83 pr2 timer2 ??? 197 * tmr2 8 tmr2 ???? 197 * t2con on ckps<2:0> outps<3:0> 208 t2clkcon ? ? ? ? ? t2cs<2:0> 207 t2rst ? ? ? ? rsel<3:0> 210 t2hlt psync ckpol cksync ?mode<3:0> 209 pr4 timer4 ??? 197 * tmr4 8 tmr4 ???? 197 * t4con on ckps<2:0> outps<3:0> 208 t4clkcon ? ? ? ? ? t4cs<2:0> 207 t4rst ? ? ? ? rsel<3:0> 211 t4hlt psync ckpol cksync ?mode<3:0> 209 pr6 timer6 ??? 197 * tmr6 8 tmr6 ???? 197 * t6con on ckps<2:0> outps<3:0> 208 t6clkcon ? ? ? ? ? t6cs<2:0> 207 t6rst ? ? ? ? rsel<3:0> 212 t6hlt psync ckpol cksync ?mode<3:0> 209 ?? ? = ?? 0 timer2 ???? * ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 214 ? ? 2014 microchip technology inc. 23.0 ? / ? /pwm ? ? / ? /pwm ??????? ? pulse-width modulation pwm ????????? ???????? ???? pwm ????? ????? ??? / ? /pwm ? ccp1 ccp2 23.1 ??? ?????? ccp ? ?? ???? 16 timer1 ? ccpx ? ?? 16 ccprxh:ccprxl ???? ? tmr1h:tmr1l ?? 16 ?? ? ccpxcon ? mode<3:0> ? ? ? ??? ? ?? ? ? ? ? 4 ? ? 16 ccpx ??? ccpxcap ? cts ??? ? ccpx ? ? 1 c1_out_sync ? ? 2 c2_out_sync pic16(l)f1613 ? ?? ioc_interrupt ?? pirx ?? ccpxif 1 ??? ccprxh ccprxl ??????? ???????2??? ? 23-1 ?????? 23.1.1 ccp ????? ccpxcap ? cts ??? ccpx ??? tris 1 ?? ? ?? apfcon ? ccp2 ? ????? 12.1 ?? ? 1 ? ccp ??? ???????? ??? ccp1con ccp2con ? ?? ccp ?? 2 ????? ccp ?Y?? ccpx ? ??????? i/o ? ????? x ? ???? ? ccpx ??? ??
? 2014 microchip technology inc. ds40001737a_cn 215 ? pic12(l)f1612/16(l)f1613 ? 23-1 ????? 23.1.2 timer1 ??? ?? ccp ???? timer1 ?? ????????? ?? timer1 ?? 21.0 ?? timer1 ?B 23.1.3 ?? ?????????? ? piex ? ccpxie ?? ?????????? pirx ? ccpxif ?? 23.1.4 ccp ?? ? ccpxcon ? mode<3:0> ? 4 ???? ccp ? ccp ? ??????????? ???? ????????? ???????? ?????? ccpxcon ? en ?? 23.1.5 ??? ????? timer1 ?? ???? timer1 ??? f osc /4 ??? timer1 ?? f osc /4 ?? timer1 ???? timer1 ??? timer1 ?????????? ??? 23.1.6 ? i/o ??????? apfcon ? i/o ????? ??????? 12.1 ?? ?? 23.1.7 ? ??? ccp ??? 1 ??? 1/f osc cwg ?? adc ???? tmr2 ????? smt ?? ? ccpx ???? ccpxcon ? oe ccp ccpx ? rev. 10 -000 158a 12 /19 /201 3 ccprxh ccprxl tmr1h tmr1l 16 16 nxne < 1  4  16 ccpx tris {
 ccpxif 5b 1 ccpx mode <3:0>
` e?"??# 00 11 10 01 c1out_sync c2out_sync (1) ioc_interrup t oe ccpxcap<1:0> "? 1 ? ?l$ pic16(l)f1613 ? ? ???? timer1 ???? ? f osc ??????? ccpx ??? timer1 ?? ?? f osc /4 ??? ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 216 ? ? 2014 microchip technology inc. 23.2 ??? ?????? ccp ? ?? ???? 16 timer1 ? ccprxh:ccprxl ?? 16 ?? tmr1h:tmr1l ? 16 ?????? ?? ? ? ccpx ? ccpx 1 ? ccpx ? ccpx ? ? ? ?? tmr1 ?? ccpxcon ? mode<3:0> ????? ccpxif 1 ????? ? 23-2 ??????? 23.2.1 ccpx ??? tris ? ccpx ? ? ?? apfcon ? ? 12-1 ccpx ?????? 12.1 ?? ? 23-2 ????? ? ccpxcon ?? ccpx ? ???????? ? i/o rev. 10 -000 159a 12 /10 /201 3 ccprxh ccprxl tmr1h tmr1l !ew < s r q eg? fee  ccpxif 5b 1 mode<3:0> 4 7?a? tris {
ccpx oe
? 2014 microchip technology inc. ds40001737a_cn 217 ? pic12(l)f1612/16(l)f1613 23.2.2 timer1 ??? ???? timer1 ????? ???????? timer1 ?? 21.0 ? ?? timer1 ?B 23.2.3 ?? ??? mode<3:0> = 1010 ? ccpx ? ccpx ?? ccpxcon ? 23.2.4 ???? ????????? f osc f osc ??1???????? 23.2.5 ? i/o ? ?????? apfcon ? i/o ????? ??????? 12.1 ?? ?? 23.2.6 ? ???? ccp ccprxh:ccprxl ? 16 ? tmr1h:tmr1l ???? ?? ccp ????? ccpxcon ? mode 1011 1010 ccp ?q tmr1 ccprxh:ccprxl ? ??? tmr1 ?? ccpxcon mode 0001 0010 ???? 0 ? 1 ? ccpxcon mode 1001 ?? ?? mode 1000 ?? ? 1 cwg ?? adc ???? tmr2 ???? ? smt ?? ?? ccpxcon ? oe ccp ccpx ? ? ???? timer1 ???? ? f osc ??????? ccpx ??? timer1 ?? ?? f osc /4 ??? ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 218 ? ? 2014 microchip technology inc. 23.3 pwm pwm ????? ?????? pwm ?????????? ????????? ?? ???????^? ?? ???? ?????? ? ??? pwm ???? ????????? pwm ???? pwm ? ?????????? ??????? ?????????? ??? 0% ??? 100% ? ???????????? ???? ? 23-3 pwm ????? ? 23-3 pwm ???? rev. 10 -000 157a 1/22 /201 4 ccprxh 40n!?, < !j?, < ( 2 ) ?b*  ???? !ew < !ew < pr2 (1) tmr2 tmr2 ? + ccpx ccpx_out 7?a? r tris {
oe r s q ccprxl  ccpif 5b 1 ccpx_pset ers fee ? 1 8 ? fosc 2 ??? 2 ??? 10 ? 2 ccpr ? 10 ??? fmt ? ? 23-4
? 2014 microchip technology inc. ds40001737a_cn 219 ? pic12(l)f1612/16(l)f1613 23.3.1 ? pwm ???? pwm ccp ? ?? ? pwm ?? ccpx ??? 10 ?? pwm ??????? ??? ? pr2/4/6 ? ? t2con/t4con/t6con ? ? ccprxh:ccprxl ? ? 23-3 pwm ???? 23.3.2 pwm ccp ??? pwm ?? s 1. ?? tris 1 ? ccpx 2. ?????? ccp timer2/4/6 3. pwm ?? pr2/4/6 ? 4. ???? ccpxcon ? ccp ?? pwm ?? 5. pwm ???? ccprxh:ccprxl ? ? 6. timer2/4/6 ? pirx ? tmr2if/tmr4if/tmr6if ??? ? ? ????? txcon ? ckps ? ? txcon ? on 1 ?? ? 7. ? pwm ? ? ??? pirx ? tmr2if/tmr4if/tmr6if 1 ? ? ?? tris ?? ccpx ? 1 ?? ccpx ? pwm ? tris 2 ccpxcon ? ccpx ??? ? ??? pwm ?? ??? ??? pwm ? ????? 6
pic12(l)f1612/16(l)f1613 ds40001737a_cn 220 ? ? 2014 microchip technology inc. 23.4 ccp/pwm ?? pic12(l)f1612/16(l)f1613 ? ccp pwm ? ???????? 3 ??? 8 ? timer2/4/6 ccp pwm ?? pwm ?? ??? ccptmrs ??????? 23.4.1 ccp ?? tmr2/4/6 ? tmr2 ?? ?????? pwm ??? ????? timer2 ???? pwm ??? 22.5 ?? ccp ? pwm ???? f osc /4 ? ? 23.4.2 pwm pwm ?? timer2/4/6 pr2/4/6 ?? pwm ? ? 23-1 ? ? 23-1 pwm tmr2/4/6 ?? pr2/4/6 ?? ??? 3 ? ? tmr2/4/6 ? ccpx ? 1 pwm ? =0% ?? 1 ? pwm ??? ccprxh:ccprxl ? ? 10 ? 23.4.3 pwm ?? ? 10 ??? pwm ??? ccprxh:ccprxl ?? ? ccpxcon ? fmt fmt = 0 ???? 2 ? ccprxh ? bit <1:0> ? 8 ? ccprxl ? fmt = 1 ?? ??? 2 ccprxl ? bit <7:6> 8 ? ccprxh ? ? 23-4 ??? ?? pr2/4/6 tmr2/4/6 ????????? ? 23-2 ? pwm ? ? 23-3 ? pwm ??? ? 23-2 ? 23-3 ?? pwm ?????????? pwm 8 ? tmr2/4/6 ? 2 ???? f osc ?? 2 ??? 10 ? timer2/4/6 ??? 1:1 ????? 10 ????? ccpx ? ? ? 23-3 ? 23-4 ccpx ????? 23.4.4 pwm ? ?????? 10 ? ??? 1024 ??? 8 ?? ? 256 ??? ? ? pwm ????? ? ? 22-1 pwm period pr 2 () 1 + [] 4t osc ? ? ? = (tmr2 prescale value) ? 1 t osc = 1/f osc pwm tmr2 ??? pulse width ccprxh:ccprxl ? t osc = ? (tmr2 prescale value) tmr2 ??? duty cycle ratio ccprxh:ccprxl () 4pr x 1 + () -------------------------------------------------- = ?? rev. 10 -000 160a 12 /9/201 3 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 ccprxh ccprxl 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 ccprxh ccprxl fmt = 0 fmt = 1 7 6 5 4 3 2 1 0 9 8 10 ! 40n!
? 2014 microchip technology inc. ds40001737a_cn 221 ? pic12(l)f1612/16(l)f1613 pr2/4/6 ? 255 ? pwm ?? 10 pr2/4/6 ??? ? 23-4 ? ? 23-4 pwm ? ? ?? ? pwm ??? resolution 4pr 2 1 + () [] log 2 () log ----------------------------------------- - bits = ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 222 ? ? 2014 microchip technology inc. 23-1 pwm ????? f osc = 20 mhz 23-2 pwm ????? f osc = 8 mhz 23.4.5 ????? pwm ????????????? ?? pwm ??????? 5.0 ?B 23.4.6 ? ??????? ? ccp ???? 23.4.7 pwm pwm ?? ccp ?? pwm ? cwg ?? adc ???? tmr2 ?? ??? smt ???? ccpxcon ? oe ccp ccpx ? pwm ? 1.22 khz 4.88 khz 19.53 khz 78.12 khz 156.3 khz 208.3 khz ???? 16 4 1 1 1 1 pr2 ? 0xff 0xff 0xff 0x3f 0x1f 0x17 ? 10 10 10 8 7 6 pwm ? 1.22 khz 4.90 khz 19.61 khz 76.92 khz 153.85 khz 200.0 khz ???? 16 4 1 1 1 1 pr2 ? 0x65 0x65 0x65 0x19 0x0c 0x09 ? 888655
? 2014 microchip technology inc. ds40001737a_cn 223 ? pic12(l)f1612/16(l)f1613 23.5 ? ccp ? 23-1 ccpxcon ccpx ?? r/w-0/0 r/w-0/0 r-x r/w-0/0 r/ w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 en oe out fmt mode<3:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 en ccpx ?? 1 = ? ccpx 0 = ? ccpx bit 6 oe ccpx ? 1 = ? ccpx ? 0 = ? ccpx ? bit 5 out ccpx ? bit 4 fmt ccpw ??? mode = pwm ?? 1 = ? ccprxh<7> pwm ??? msb 0 = ?? ccprxl<0> pwm ??? lsb bit 3-0 mode ccpx ??? 11xx = pwm ?? 1011 = ??? tmr1 1010 = ??? 0 - 1 - 0 1001 = ?????? 1000 = ?????? 1 0111 = ???? 16 0110 = ???? 4 0101 = ???? 0100 = ????? 0011 = ?????? 0010 = ?????? 0001 = ?????? tmr1 0000 = ? / ? /pwm ? ccpx ? ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 224 ? ? 2014 microchip technology inc. ? 23-2 ccptmrs pwm ???? 0 u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? c2tsel<1:0> c1tsel<1:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-4 ?? ? 0 bit 3-2 c2tsel<1:0> ccp2 pwm2 ?? 11 = 10 = pwm ?? ccp2 timer6 01 = pwm ?? ccp2 timer4 00 = pwm ?? ccp2 timer2 bit 1-0 c1tsel<1:0> ccp1 pwm1 ?? 11 = 10 = pwm ?? ccp1 timer6 01 = pwm ?? ccp1 timer4 00 = pwm ?? ccp1 timer2
? 2014 microchip technology inc. ds40001737a_cn 225 ? pic12(l)f1612/16(l)f1613 ? 23-3 ccprxl ccpx ??? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ccpr<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 mode = ??? ccprxl<7:0> ? tmr1 ? lsb mode = ??? ccprxl<7:0> lsb tmr1 ?? mode = pwm ?? fmt = 0 ccprxl<7:0> ccpw<7:0> ? 8 mode = pwm ?? fmt = 1 ccprxl<7:6> ccpw<1:0> ? 2 ccprxl<5:0> ? ? 23-4 ccprxh ccpx ??? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ccpr<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 mode = ??? ccprxh<7:0> ? tmr1 ? msb mode = ??? ccprxh<7:0> msb tmr1 ?? mode = pwm ?? fmt = 0 ccprxh<7:2> ? ccprxh<1:0> ccpw<9:8> ? 2 mode = pwm ?? fmt = 1 ccprxh<7:0> ccpw<9:2> ? 8
pic12(l)f1612/16(l)f1613 ds40001737a_cn 226 ? ? 2014 microchip technology inc. ? 23-5 ccpxcap ccpx ??? u-0 u-0 u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 ? ? ? ? ? ?cts<1:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-2 ?? ? 0 bit 1-0 cts<1:0> ?? 11 = ioc_interrupt 10 = c2_out_sync (1) 01 = c1_out_sync 00 = ccpx ? 1 pic16(l)f1613 pic12(l)f1612 ?
? 2014 microchip technology inc. ds40001737a_cn 227 ? pic12(l)f1612/16(l)f1613 23-3 ? pwm ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? apfcon ? cwgasel (2) cwgbsel (2) ? t1gsel ? ccp2sel (3) ccp1sel (2) 128 ccpxcap ? ? ? ? ? ?cts<1:0> 226 ccpxcon en oe out fmt mode<3:0> 223 ccprxl ? / ? /pwm ? x lsb 225 ccprxh ? / ? /pwm ? x msb 225 ccptmrs ? ? ? ? c2tsel<1:0> c1tsel<1:0> 224 intcon gie peie tmr0ie inte iocie tmr0if intf iocif 78 pie1 tmr1gie adie ? ? ? ccp1ie tmr2ie tmr1ie 79 pie2 ? c2ie (3) c1ie ? ? tmr6ie tmr4ie ccp2ie 80 pir1 tmr1gif adif ? ? ? ccp1if tmr2if tmr1if 83 pir2 ? c2if (3) c1if ? ? tmr6if tmr4if ccp2if 84 pr2 timer2 ?? 197 * t2con on ckps<2:0> outps<3:0> 208 tmr2 timer2 ?? 197 pr4 timer4 ?? 197 * t4con on ckps<2:0> outps<3:0> 208 tmr4 timer4 ?? 197 pr6 timer6 ?? 197 * t6con on ckps<2:0> outps<3:0> 208 tmr6 timer6 ?? 197 trisa ? ? trisa5 trisa4 ? (2) trisa2 trisa1 trisa0 131 ?? ? = ?? 0 pwm ??? * ???? ? 1 ??? 1 2 pic12(l)f1612 3 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 228 ? ? 2014 microchip technology inc. 24.0 cwg ? cwg ????? pwm ? eccp ?? cwg ? ? 6 ??? - ???? - ???? - ??? pic16(l)f1613 - ??? pic16(l)f1613 - ?? - ?? ? ? ? ? - ?? - ? 6 ???? - ??? - ??? ? ????? - ??? - ?? - ??? 24.1 cwg ? 6 ????1?? cwgxcon0 ? mode ? ? ?? ? 24-9 ? ?? ? 24-1 - ??? ? 24-2 pic16(l)f1613 - ??? ? 24-2 pic16(l)f1613 ? ??? ? 24-4 ? ???? ? 24-4 ?????? ???? ??????? ?? 24.10 ??? ?? 24.1.1 ?? ?????? ?? ? 24-9 ???? ????????? 24.5 ? ??? ? cwgxc cwgxd ??? ??? cwgxcon1 ? polc pold ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 229 ? ? 2014 microchip technology inc. ? 24-1 cwg ? ?? rev. 10 -000 166a 12 /19 /201 3 1 0 hfintosc f osc t "?!o ? + js signal_in signal_out js signal_in signal_out ?l!"?!o ? + cwgxclk<0> d e q q en 000 011 010 001 100 101 110 111 +- +- +- ccp2_out ccp1_out c2out_sync (1) c1out_sync cwgxin shutdown cwgxism<2:0> cwg_data cwg_dataa cwg_datac cwg_datab cwg_datad r "? 1 ? ?l$ pic16(l)f1613 ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 230 ? ? 2014 microchip technology inc. 24.1.2 ?? ?????? | ? 24-2 ???? ????? ? en = 0 ???? ?????? cwgxa ? ? cwgxc cwgxd ? cwgxa cwgxb ????? cwgxcon1 polc pold ? 24.1.3 ??? ???? 3 ?? 4 ??????? cwgxa ??? cwgxb cwgxc ??? cwgxd ??? ? ???? cwgxc ??? cwgxa cwgxd ??? cwgxb ? ???????? ???? 24.5 ? ??? 24.6 ?? 24.7 ?? ??? ??????? cwgxcon0 mode<0> ?? mode<2:1> ?? cwg ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 231 ? ? 2014 microchip technology inc. ? 24-2 cwg ? ?? rev. 10 -000 167a 12 /19 /201 3 d q q d e q q en 000 011 010 001 100 101 110 111 +- +- +- ccp2_out ccp1_out c2out_sync (1) c1out_sync cwgxin shutdown cwgxism<2:0> cwg_data cwg_dataa cwg_datac cwg_datab cwg_datad r r "? 1 ? ?l$ pic16(l)f1613 ?
? 2014 microchip technology inc. ds40001737a_cn 232 ? pic12(l)f1612/16(l)f1613 ? 24-3 cwg ? ???? rev. 10 -000 165a 12 /19 /201 3 cwg_data d q q mode0 1 0 hfintosc f osc ? ?!o ? + js signal_in signal_out js signal_in signal_out !7 ?!o ? + cwgxclk<0> d e q q en 000 011 010 001 100 101 110 111 +- +- +- ccp2_out ccp1_out c2out_sync (1) c1out_sync cwgxin shutdown cwgxism<2:0> cwg_dataa cwg_datab cwg_datac cwg_datad r "? 1 ? ?l$ pic16(l)f1613 ?
? 2014 microchip technology inc. ds40001737a_cn 233 ? pic12(l)f1612/16(l)f1613 24.1.4 ??? ????? 4 cwg ??????? ?????? ??????? ?? 24.9 ? cwg ???
? 2014 microchip technology inc. ds40001737a_cn 234 ? pic12(l)f1612/16(l)f1613 ? 24-4 cwg ? ??? rev. 10 -000 164a 12 /19 /201 3 d e q q en 000 011 010 001 100 101 110 111 +- +- +- ccp2_out ccp1_out c2out_sync (1) c1out_sync cwgxin shutdown cwgxism <2:0> cwg_dataa cwg_datab cwg_datac cwg_datad cwg_data r "? 1 ? ?l$ pic16(l)f1613 ?
? 2014 microchip technology inc. ds40001737a_cn 235 ? pic12(l)f1612/16(l)f1613 24.2 ?? cwg ???? ? fosc ???? ? hfintosc 16 mhz ??? cwgxclkcon ? cs ? 24.3 ?? cwg 24-1 ? 24-1 ?? ?? cwgxism ?? 24.4 24.4.1 ? ? cwg ???? ?? gx1oex<3:0> ????? ????? 1 ?? ??????? pwm ?? cwgxcon0 ?? ? en en ? cwg ?? cwg ??? 24.4.2 ? ? cwg ?????? 1 ????? ???????? ?? cwgxcon1 polx ?????????? ? ? cwg cwgxin ? c1 c1_out_sync ? c2 (1) c2_out_sync ccp1 ccp1_out ccp2 ccp2_out ? 1 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 236 ? ? 2014 microchip technology inc. ? 24-5 cwg ? rev. 10 -000 171a 12 /19 /201 3 "? 1 0 1 0 00 11 10 01 ovra stra (1) 1 0 p?l? cwg_dataa pola lsac<1:0> 1 0 1 0 00 11 10 01 ovrb strb (1) 1 0 p?l? cwg_datab polb lsbd<1:0> 1 0 1 0 00 11 10 01 ovrc strc (1) 1 0 p?l? cwg_datac polc lsac<1:0> 1 0 1 0 00 11 10 01 ovrd strd (1) 1 0 p?l? cwg_datad pold lsbd<1:0> cwg_shutdown oea tris {
oeb tris {
oec tris {
oed tris {
cwgxa cwgxb cwgxc (2) cwgxd (2) 1 ?  strx l8eg?e@ ???,xyja??? ? 1 ? 2 ?  ?l$ pic16(l)f1613 b
? 2014 microchip technology inc. ds40001737a_cn 237 ? pic12(l)f1612/16(l)f1613 24.5 ?? pwm ???? pwm ?????? cwg 6 ??? ???????? ???????? ??? ???? cwg ?? 0 ?????? ?? cwgxdbr cwgxdbf ? 24.5.1 ?? ?????? ?? ? 24-9 ??? 24.5.2 ??? ??????? cwgxcon0 ? mode<0> cwg ? 1 ?????? cwgxa cwgxc ??????? ??? cwgxb cwgxd ?? ???? ? 24-3 ? 24.6 ?? cwgxdbr cwgxa ???? cwgxb ??????? cwgxdbr ? ??? en = 0 ? cwgxdbr ? ? cwgxdbr ? en = 1 ? ? cwgxcon0 ? ld 1 ? cwg ???????? ??????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 238 ? ? 2014 microchip technology inc. 24.7 ?? cwgxdbf cwgxb ???? cwgxd ? ????? cwgxdbf ?? ?? en = 0 ? cwgxdbf ? ? cwgxdbf ? en = 1 ?? cwgxcon0 ? ld 1 ? cwg ????????? ?????? ? ? 24-6 ? 24-7
pic12(l)f1612/16(l)f1613 ds40001737a_cn 239 ? ? 2014 microchip technology inc. ? 24-6 cwgxdbr = 0x01 cwgxdbf = 0x02 ? 24-7 cwgxdbr = 0x03 cwgxdbf = 0x04 ? ? cwgxa cwgxb cwg_clock ? ? cwgxa cwgxb cwg_clock
pic12(l)f1612/16(l)f1613 ds40001737a_cn 240 ? ? 2014 microchip technology inc. 24.8 ? ??? cwg ??? ??? 1 cwg ?? ?? ? 24-1 ? 24-1 ? ? 24-8 pwm ?? ? 24-9 cwg ?? t deadband _ uncertainty 1 fcwg_clock ---------------------------- - = ? fcwg_clock = 16 mhz ? t deadband _ uncertainty 1 fcwg_clock ---------------------------- - = 1 16mhz ------------------ = 62.5ns = 16 mhz 62.5 ns ? 1 wgpol{abcd} = 0 2 mode<0> ? 24-1 pwm ???? cwgx_data 3 ??? cwgxa cwgxc cwgx_data ?? cwgxb cwgxd ? ?????^ cwgxdbf ? cwgxdbr ? mode0 cwgxa cwgxb cwgxc cwgxd cwgx_data ? ?? ? ?? cwgx_clock cwgxa cwgxb ? cwgx_rising_src = ccp1_out cwgx_falling_src = ~ccp1_out cwgxd cwgxc cwgx_data
? 2014 microchip technology inc. ds40001737a_cn 241 ? pic12(l)f1612/16(l)f1613 24.9 cwg ??? ??? mode = 00x cwg ? cwgxx ???????? ?????? cwgxocon0 ? strx ? 0 ??? ?? cwgxocon0 ? strx ? 1 ???? ??? 1 2 3 ? 4 ? cwgxcon1 ? polx strx = 1 ? ???? cwg ??????? 24.10 ??? ???? strx = 1 ?? 24.9.1 ?? mode ????? mode = 000 ????? strx ?? ? ????? ??? mode = 001 ???? ?????? / ??? ? 24-10 ? 24-11 ????? ? 24-10 ????? mode<2:0> = 000 ? 24-11 ??????? mode<2:0> = 001 cwgx_data cwgx_data str cwgx ? ovr ovr ???? cwgx_data ovr cwgx_data str cwgx ovr ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 242 ? ? 2014 microchip technology inc. 24.10 ?? ?????? cwg ?????????? ????? ? 24-12 ????? 24.10.1 ? ???????? ? ? ? 24.10.1.1 ?? cwgxas0 ? shutdown 1 ? cwg ??? ?????? shutdown 1 ?? ????? ??? shutdown ?? ??? 24.10.2 ?? ???????? cwg ? ??? ? cwg ???? ?????? ?????? ? ? c1_out_sync ? ? c2_out_sync pic16(l)f1613 ? timer2 tmr2_postscaled ? timer4 tmr4_postscaled ? timer6 tmr6_postscaled ? cwgxin ?? cwgxas1 ? ? 24-6 ? 24.11 ?? cwg ?????????? ??????? ??? hfintosc ? ???? ? ? cwg ? ? ????? ? ? hfintosc ??????? ? cwg ????????? ? hfintosc ????? cwg ?? cpu ???? hfintosc ? ?? cwg ??? ?? ? ????? ???????? ????????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 243 ? ? 2014 microchip technology inc. ? 24-12 cwg ??? rev. 10 -000 172a 1/9/201 4 s r q  1 m9 shutdown ! cwgxin inas c1out_sync c1as c2out_sync (1) c2as tmr2_postscaled tmr2as tmr4_postscaled tmr4as tmr6_postscaled tmr6as ren  0 m9 shutdown ! shutdown freeze d ck q s cwg_data cwg_shutdown "? 1 ? ?l$ pic16(l)f1613 ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 244 ? ? 2014 microchip technology inc. 24.12 cwg 2?? cwg 1. ??? cwg ? tris 1 ??? 2. en ? 3. ? mode ??? 4. ? cwgxdbr cwgxdbf ? ? ?? 5. cwgxas0 cwgxas1 ? ? a. ???? b. ????? ?????????? ? c. ? cwgxas1 ??? ??? d. shutdown 1 ren ? 6. ? cwgxism ??? 7. ?? a. ? cwgxclkcon ???? b. ? cwgxcon1 ??? c. ? 1 8. en 1 9. ?? tris ? 10. ??? ren 1 shutdown ??? shutdown cwg 24.12.1 ?? ??????? cwgxas0 ? lsbd lsac ? lsbd<1:0> cwgxb cwgxd ? lsac<1:0> cwgxa cwgxc ????? ?????????? ? 24.12.2 ?? ?????????? ? ? ? ? cwgxcon2 ? ren ? ? 24-13 ? 24-14 ? 24.12.2.1 cwgxas0 ? ren ??? ??? cwg ???? ?????? shutdown 1 ???? shutdown ?????? cwg 24.12.2.2 ? cwgxcon2 ? ren 1 ? cwg ?????????? ? shutdown ????? ? shutdown ?? ???? cwg 24.12.3 ??????? apfcon ??????? ????? 12.1 ?? ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 245 ? ? 2014 microchip technology inc. ? 24-13 ????? ren = 0 lsac = 01 lsbd = 01 ? 24-14 ????? ren = 1 lsac = 01 lsbd = 01 ? ren ?? cwg ? shutdown cwgxa ?? ???? ? cwgxb ? cwgxc cwgxd ? ? ren ?? ?? cwg ? shutdown cwgxa ?? ???? cwgxb ? cwgxc cwgxd
pic12(l)f1612/16(l)f1613 ds40001737a_cn 246 ? ? 2014 microchip technology inc. 24.13 ? cwg ? 24-1 cwgxcon0 cwgx ?? 0 r/w-0/0 r/w/hc-0/0 u-0 u-0 u -0 r/w-0/0 r/w-0/0 r/w-0/0 en ld (1) ? ? ? mode<2:0> bit 7 bit 0 ?? hc = ? hs = ? 1 r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 en cwgx ? 1 = ?? 0 = ?? bit 6 ld cwgx ?? (1) 1 = ?? / ????? 0 = ?? bit 5-3 ? ? 0 bit 2-0 mode<2:0> cwgx ?? 111 = 110 = 101 = cwg ??1 100 = cwg ???1 011 = cwg ????1 010 = cwg ???1 001 = cwg ????1 000 = cwg ???1 ? 1 ? en = 1 1 en 1 ??? 1
? 2014 microchip technology inc. ds40001737a_cn 247 ? pic12(l)f1612/16(l)f1613 ? 24-2 cwgxcon1 cwgx ?? 1 u-0 u-0 r-x u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ?in ? pold polc polb pola bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-6 ?? ? 0 bit 5 in cwg ? bit 4 ?? ? 0 bit 3 pold cwgxd 1 = ??? 0 = ?? bit 2 polc cwgxc 1 = ??? 0 = ?? bit 1 polb cwgxb 1 = ??? 0 = ?? bit 0 pola cwgxa 1 = ??? 0 = ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 248 ? ? 2014 microchip technology inc. ? 24-3 cwgxdbr cwgx ? u-0 u-0 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u ? ?dbr<5:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-6 ?? ? 0 bit 5-0 dbr ?? ? 24-4 cwgxdbf cwgx ?? u-0 u-0 r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u r/w-x/u ? ?dbf<5:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-6 ?? ? 0 bit 5-0 dbf ???
? 2014 microchip technology inc. ds40001737a_cn 249 ? pic12(l)f1612/16(l)f1613 ? 24-5 cwgxas0 cwgx ????? 0 r/w/hs-0/0 r/w-0/0 r/w-0/0 r/w-1/1 r/w-0/0 r/w-1/1 u-0 u-0 shutdown (1, 2) ren lsbd<1:0> lsac<1:0> ? ? bit 7 bit 0 ?? hc = ? hs = ? 1 r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 shutdown ????? (1, 2) 1 = ???? 0 = ??? bit 6 ren ?? 1 = ?? 0 = ?? bit 5-4 lsbd<1:0> cwgxb cwgxd ???? 11 = ????? 1 cwgxb/d 10 = ????? 0 cwgxb/d 01 = ???? cwgxb/d ??? 00 = ??????? ? cwgxb/d bit 3-2 lsac<1:0> cwgxa cwgxc ???? 11 = ????? 1 cwgxa/c 10 = ????? 0 cwgxa/c 01 = ???? cwgxa/c ??? 00 = ??????? ? cwgxa/c bit 1-0 ?? ? 0 ? 1 en = 0 cwgxcon0 ????? 2 ????????????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 250 ? ? 2014 microchip technology inc. ? 24-6 cwgxas1 cwgx ????? 1 u-1 r/w-0/0 r/w-0/0 r/w-0/0 u-1 r/w-0/0 r/w-0/0 r/w-0/0 ? tmr6as tmr4as tmr2as ?c2as (1) c1as inas bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 ?? ? 1 bit 6 tmr6as tmr6 ? 1 = ? tmr6 ?? 0 = ? tmr6 ?? bit 5 tmr4as tmr4 ? 1 = ? tmr4 ?? 0 = ? tmr4 ?? bit 4 tmr2as tmr2 ? 1 = ? tmr2 ?? 0 = ? tmr2 ?? bit 3 ?? ? 1 bit 2 c2as ? c2 (1) 1 = ? c2 ? 0 = ? c2 ? bit 1 c1as ? c1 1 = ? c1 ? 0 = ? c1 ? bit 0 inas cwgx 1 = ? cwgxin ?? 0 = ? cwgxin ?? ? 1 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 251 ? pic12(l)f1612/16(l)f1613 ? 24-7 cwgxocon0 cwgx ??? (1) r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ovrd ovrc ovrb ovra strd (2) strc (2) strb (2) stra (2) bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 ovrd ? d bit 6 ovrc ? c bit 5 ovrb ? b bit 4 ovra ? a bit 3 strd ?? d (2) 1 = cwgxd cwgx_data pold 0 = cwgxd ?? ovrd ? bit 2 strc ?? c (2) 1 = cwgxc cwgx_data polc 0 = cwgxc ?? ovrc ? bit 1 strb ?? b (2) 1 = cwgxb cwgx_data polb 0 = cwgxb ?? ovrb ? bit 0 stra ?? a (2) 1 = cwgxa cwgx_data pola 0 = cwgxa ?? ovra ? ? 1 ?? mode<2:0> = 00x ? 2 mode<2:0> = 001 ?????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 252 ? ? 2014 microchip technology inc. ? 24-8 cwgxocon1 cwgx ??? 1 u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? oed oec oeb oea bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-4 ?? ? 0 bit 3 oed cwgx d ? 1 = ? cwgx d 0 = ? cwgx d bit 2 oec cwgx c ? 1 = ? cwgx c 0 = ? cwgx c bit 1 oeb cwgx b ? 1 = ? cwgx b 0 = ? cwgx b bit 0 oea cwgx a ? 1 = ? cwgx a 0 = ? cwgx a
? 2014 microchip technology inc. ds40001737a_cn 253 ? pic12(l)f1612/16(l)f1613 ? 24-9 cwgxclkcon cwgx ???? u-0 u-0 u-0 u-0 u-0 u-0 u-0 r/w-0/0 ? ? ? ? ? ? ?cs bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-1 ?? ? 0 bit 0 cs cwgx ?? 1 = ? hfintosc 16 mhz 0 = ? f osc ? 24-10 cwgxism cwgx ?? u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? ? is<2:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-3 ?? ? 0 bit 2-0 g x is<2:0> cwgx ? 111 = ?? 110 = ?? 101 = ?? 100 = ccp2_out 011 = ccp1_out 010 = c2_out_sync (1) 001 = c1_out_sync 000 = cwgxin ? 1 pic16(l)f1613
pic12(l)f1612/16(l)f1613 ds40001737a_cn 254 ? ? 2014 microchip technology inc. 24-2 cwg ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? apfcon ? cwgasel (2) cwgbsel (2) ? t1gsel ? ccp2sel (2) ccp1sel (1) 128 cwg1as0 shutdown ren lsbd<1:0> lsac<1:0> ? ? 249 cwg1as1 ? tmr6as tmr4as tmr2as ?c2as (2) c1as inas 250 cwg1clkcon ? ? ? ? ? ? ?cs 253 cwg1con0 en ld ? ? ? mode<2:0> 251 cwg1con1 ? ?in ? pold polc polb pola 247 cwg1dbf ? ?dbf<5:0> 248 cwg1dbr ? ?dbr<5:0> 248 cwg1ism ? ? ? ? ? is<2:0> 253 cwg1ocon0 ovrd ovrc ovrb ovra strd strc strb stra 251 cwg1ocon1 ? ? ? ?oedoecoeboea 252 ?? x = ? u = ? ? = ?? 0 cwg ??? ? 1 pic12(l)f1612 2 pic16(l)f1613
? 2014 microchip technology inc. ds40001737a_cn 255 ? pic12(l)f1612/16(l)f1613 25.0 ??? smtx smtx ?????? 24 ???? ?????????? smtx ? ? 24 ? / - 3 8 ? smtxl/h/u - ? - ? 16 ?? ? 2 24 ?? ? 1 24 ?? ? ??? ? ? ? ?????? ? ?? ? ???? ? ? smt ? smtx t smt1 smt2
pic12(l)f1612/16(l)f1613 ds40001737a_cn 256 ? ? 2014 microchip technology inc. ? 25-1 smtx ? ? 25-2 smtx ????? rev. 10 -000 161a 1/2/201 4 {
fee smt_window smt_signal 000 011 010 001 100 101 110 111 nxne < +- +- +- mfintosc/16 lfintosc hfintosc f osc /4 f osc smtxpr !ew < smtxtmr s6? ! 24 ! 4?? < 24 ! 4?? < smtxcpr smtxcpw 0k j?, <
<j?, <  smtxif 5b 1 smtxclk<2:0> smt js !9 + c? smt js !9 + c?  smtxpraif 5b 1  smtxpwaif 5b 1 rev. 10 -000 173a 12 /19 /201 3 000 011 010 001 100 101 110 111 +- c1out_sync c2out_sync (1) zcd1_output tmr2_postscaled tmr4_postscaled tmr6_postscaled smtsigx smt_signal smtxsig<2:0> smtxwin<3:0> smt_window a? ??? smtxwin ?, <
? 2014 microchip technology inc. ds40001737a_cn 257 ? pic12(l)f1612/16(l)f1613 25.1 smtx ? ???????? 24 smtxtmr ???? smtx ? 25-1 ??? 25.1.1 ?? smtx ??? ? f osc ? f osc /4 ? hfintosc 16 mh z ? lfintosc ? mfintosc 31.25 kh z smtx ??? smtxclk ? csel<2:0> ???? smtxcon0 ? ps<1:0> ??????? ????????? 25.1.2 ? smtx smtxtmr ? 0 ?? smtxtmr = smtxpr ? ???????? ??? ? smtxpr ?? ?????? 25.2 ??? smtxtmr ? smtxcpw/smtxpr/smtxcpr ??????? ? 25.2.1 ? smtxtmr ? 24 smtx ?? smtx ??? ? / ?? smtxstat ? rst 1 ? ?? 24'h00_0000 ????? go = 0 ? smtxtmr ???? smtxtmr / ? 25.2.2 ? smtxcpw ?? 24 smtx ???? smtxtmr ? ? smt ???? smtxstat ? cpwup 1 ?? smtxtmr ? ?? smtxcpw ? 25.2.3 ? smtxcpr ?? 24 smtx ???? smtxtmr ? ? smtx ??? ? smtxstat ? cpru 1 ?? smtxtmr ??? smtxcpr ? 25.3 ? ? smtxcon0 ? stp ? ?????? smtxtmr ?? ?? 25.2.1 ? ? smtxcon1 ? smtxgo ? smtxtmr ? 25.4 ? smtx 3 ????? ?? / ???? / ?? ??? ? wsel ?? ? ssel ??? ? csel ??? ? smtxcon0 ? 25.5 ??? smtx ??????? ???? 25.5.1 ?? ??? smtxstat ? ws ? ?????????? ?? ts = 1 ??????? ??????? 25.5.2 ??? ???? smtxstat ? as ? ????????? ??? ts = 1 ????? ???????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 258 ? ? 2014 microchip technology inc. 25.5.3 ?? ???? smtxstat ? ts ? ???????????? 25.6 ?? 25-1 ?????u?? ????????? ? wpol/spol/cpol = 0 wpol/spol/cpol = 1 ? smtsigx smtwinx smt ???? ???? repeat ? ???? repeat = 0 ?? ???????? smtxgo ????? ????????? 25.6.1 ??? ???????? smtxtmr ??? 16/24 ???2??? ?? smtxgo 1 ???? ? smtx ? smtx ??? smtxgo ? smtx ???? smtxtmr = smtxpr ? smtxtmr ? ? ? 25-3 25-1 ?? mode ?? ? ? 0000 ? 25.6.1 ??? 0001 ??? 25.6.2 ????? 0010 ????? 25.6.3 ????? 0011 ?????? 25.6.4 ??????? 0100 ? 25.6.5 ??? 0101 ??? 25.6.6 ????? 0110 ? 25.6.7 ??? 0111 ? 25.6.8 ??? 1000 25.6.9 ?? 1001 ?? 25.6.10 ???? 1010 ? 25.6.11 ??? 1011 - 1111 ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 259 ? ? 2014 microchip technology inc. ? 25-3 ????? rev. 10 -000 174a 12 /19 /201 3 smtx js smtxen smtxgo smtxtmr smtxpr smtxif smtxgo_sync 0 1234567891011012345678 9 11
pic12(l)f1612/16(l)f1613 ds40001737a_cn 260 ? ? 2014 microchip technology inc. 25.6.2 ????? ?????? smtsigx smtxtmr ?????? smtxcpw ? ?? smtxtmr ??? ? 25-4 ? 25-5 ??????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 261 ? ? 2014 microchip technology inc. ? 25-4 ????????? rev. 10 -000 176a 12 /19 /201 3 0123467 0xffffff 5 5 7 smtx js smtxen smtxgo smtxtmr smtxpr smtxpwaif smtxgo_sync smtx_signal smtx_signalsync smtxcpw
? 2014 microchip technology inc. ds40001737a_cn 262 ? pic12(l)f1612/16(l)f1613 ? 25-5 ???????? rev. 10 -000 175a 12 /19 /201 3 01234 0xffffff 5 5 smtx js smtxen smtxgo smtxtmr smtxpr smtxpwaif smtxgo_sync smtx_signal smtx_signalsync smtxcpw
? 2014 microchip technology inc. ds40001737a_cn 263 ? pic12(l)f1612/16(l)f1613 25.6.3 ????? ???? smt ??? smtx_signal ??? ??? cpw ??? ?? cpr ???? smtxtmr ? 0x0001 smt ?? ??? smtxgo ?? ? 25-6 ? 25-7
? 2014 microchip technology inc. ds40001737a_cn 264 ? pic12(l)f1612/16(l)f1613 ? 25-6 ????????? rev. 10 -000 177a 12 /19 /201 3 01234 5 2 5 6 7 8 9 10 11 1 2 11 5 34 smtx js smtxen smtxgo smtxtmr smtxgo_sync smtx_signal smtx_signalsync smtxcpw smtxpwaif smtxpraif smtxcpr
pic12(l)f1612/16(l)f1613 ds40001737a_cn 265 ? ? 2014 microchip technology inc. ? 25-7 ??????? rev. 10 -000 178a 12 /19 /201 3 01234 5 11 5 6 7 8 9 10 11 smtx js smtxen smtxgo smtxtmr smtxpwaif smtxgo_sync smtx_signal smtx_signalsync smtxcpw smtxpraif smtxcpr
pic12(l)f1612/16(l)f1613 ds40001737a_cn 266 ? ? 2014 microchip technology inc. 25.6.4 ??????? ?? smtx ?? smtsigx ???? ??? smtsigx ?? smtxtmr ??? smtxcpw ? smtxtmr ????? ?????? smtxcpr ?? smtxtmr ??? ? 25-8 ? 25-9
pic12(l)f1612/16(l)f1613 ds40001737a_cn 267 ? ? 2014 microchip technology inc. ? 25-8 ??????????? rev. 10 -000 180a 12 /19 /201 3 01234 3 2 5 1 2 3 4 5 6 1 2 6 5 12 smtx js smtxen smtxgo smtxtmr smtxgo_sync smtx_signal smtx_signalsync smtxcpw smtxpwaif smtxpraif smtxcpr
? 2014 microchip technology inc. ds40001737a_cn 268 ? pic12(l)f1612/16(l)f1613 ? 25-9 ?????????? rev. 10 -000 179a 12 /19 /201 3 01234 5 6 5 1 2 3 4 5 6 smtx js smtxen smtxgo smtxtmr smtxpwaif smtxgo_sync smtx_signal smtx_signalsync smtxcpw smtxpraif smtxcpr
? 2014 microchip technology inc. ds40001737a_cn 269 ? pic12(l)f1612/16(l)f1613 25.6.5 ??? ?? smtx smtwinx ???? smtwinx ????? ???? smtxcpr ? ? ? 25-10 ? 25-11
? 2014 microchip technology inc. ds40001737a_cn 270 ? pic12(l)f1612/16(l)f1613 ? 25-10 ??????? rev. 10 -000 182a 12 /19 /201 3 smtx js smtxen smtxwin smtxwin_sync 01 8910 12 smtxgo smtxtmr smtxgo_sync 234567 11 12 smtxpraif smtxcpr 12345678 8 123 4
pic12(l)f1612/16(l)f1613 ds40001737a_cn 271 ? ? 2014 microchip technology inc. ? 25-11 ?????? rev. 10 -000 181a 12 /19 /201 3 01 8910 12 12 smtx js smtxen smtxgo smtxtmr smtxgo_sync smtxwin smtxwin_sync smtxpraif smtxcpr 234567 11
pic12(l)f1612/16(l)f1613 ds40001737a_cn 272 ? ? 2014 microchip technology inc. 25.6.6 ????? ?? smtx_signal ??? ??????? smtx_signal ? ???????? smtwinx ???? smtxcpr ?? ? 25-12 ? 25-13
pic12(l)f1612/16(l)f1613 ds40001737a_cn 273 ? ? 2014 microchip technology inc. ? 25-12 ????????? rev. 10 -000 184a 12 /19 /201 3 smtx js smtxen smtxwin smtxwin_sync 01 smtxgo smtxtmr smtxgo_sync 2 6 smtxpraif smtxcpr 3 0 smtx_signal smtx_signalsync 3 45 6 0 3 12
? 2014 microchip technology inc. ds40001737a_cn 274 ? pic12(l)f1612/16(l)f1613 ? 25-13 ???????? rev. 10 -000 183a 12 /19 /201 3 smtx js smtxen smtxwin smtxwin_sync 01 smtxgo smtxtmr smtxgo_sync 2 6 smtxpraif smtxcpr smtx_signal smtx_signalsync 3 45 6
? 2014 microchip technology inc. ds40001737a_cn 275 ? pic12(l)f1612/16(l)f1613 25.6.7 ??? ?? smtwinx ? smtx_signal ?? smtwinx ?? ??? smtx_signal ? ? smtxcpr ??? smtwinx ? smtx_signal ?????? smtxcpw ?? ? 25-14 ? 25-15
? 2014 microchip technology inc. ds40001737a_cn 276 ? pic12(l)f1612/16(l)f1613 ? 25-14 ??????? rev. 10 -000 186a 12 /19 /201 3 smtx js smtxen smtxwin smtxwin_sync 0 smtxgo smtxtmr smtxgo_sync smtxpraif smtxcpw 13 2 smtx_signal smtx_signalsync smtxcpr smtxpwaif 2 1 1 12345678910111213 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 277 ? ? 2014 microchip technology inc. ? 25-15 ?????? rev. 10 -000 185a 12 /19 /201 3 smtx js smtxen smtxwin smtxwin_sync 0 smtxgo smtxtmr smtxgo_sync smtxpraif smtxcpw smtx_signal smtx_signalsync smtxcpr smtxpwaif 2 1 1 0
pic12(l)f1612/16(l)f1613 ds40001737a_cn 278 ? ? 2014 microchip technology inc. 25.6.8 ??? ?? smtwinx ?????? ??? ccp ????? smtxgo 1 ?? smtwinx ? ? smtxcpr ?? smtwinx ? ?? cpw ?????? ??? ? 25-16 ? 25-17
pic12(l)f1612/16(l)f1613 ds40001737a_cn 279 ? ? 2014 microchip technology inc. ? 25-16 ??????? rev. 10 -000 188a 12 /19 /201 3 smtx js smtxen smtxwin smtxwin_sync 0 smtxgo smtxtmr smtxgo_sync smtxpraif smtxcpw smtxcpr smtxpwaif 2 14 12345678910111213 28 16 17 18 19 20 21 22 23 24 25 26 27 15 32 29 30 31 31932 31 18
? 2014 microchip technology inc. ds40001737a_cn 280 ? pic12(l)f1612/16(l)f1613 ? 25-17 ?????? rev. 10 -000 187a 12 /19 /201 3 smtx js smtxen smtxwin smtxwin_sync 0 smtxgo smtxtmr smtxgo_sync smtxpraif smtxcpw smtxcpr smtxpwaif 2 12 3 3
? 2014 microchip technology inc. ds40001737a_cn 281 ? pic12(l)f1612/16(l)f1613 25.6.9 ?? ?? smtx_signal ?? ?? smt ???? smtx_signal ?? ? ? smtxwin ? smtxcpr ???? ? 25-18
? 2014 microchip technology inc. ds40001737a_cn 282 ? pic12(l)f1612/16(l)f1613 ? 25-18 ???? rev. 10-000189a 12/18/2013 smtx_signal smtxen smtxwin 0 smtxgo smtxtmr smtxcpr 10 123456789 24 12 13 14 15 16 17 18 19 20 21 22 23 11 25 26 25 12 27
? 2014 microchip technology inc. ds40001737a_cn 283 ? pic12(l)f1612/16(l)f1613 25.6.10 ???? ?? smtx_signal ?? smtxwin ???? smtxwin ??? smtxwin ?? smtxcpw ? ? 25-19 ? 25-20
? 2014 microchip technology inc. ds40001737a_cn 284 ? pic12(l)f1612/16(l)f1613 ? 25-19 ???????? ? 25-20 ??????? rev. 10-000190a 12/18/2013 smtx_signal smtxen smtxwin 0 smtxgo smtxtmr smtxcpw 5 1234 11 78910 6 12 13 8 13 smtxpwaif rev. 10-000191a 12/18/2013 smtx_signal smtxen smtxwin 0 smtxgo smtxtmr smtxcpw 5 1234 78 6 8 smtxpwaif
? 2014 microchip technology inc. ds40001737a_cn 285 ? pic12(l)f1612/16(l)f1613 25.6.11 ??? ?? smtxwin ?? smtx_signal ??? smtxwin ?? smtxwin ?? smtxcpw ? smtxwin ?? ?? smtxcpr ? ? 25-21 ? 25-22
? 2014 microchip technology inc. ds40001737a_cn 286 ? pic12(l)f1612/16(l)f1613 ? 25-21 ??????? ? 25-22 ?????? smtx_signal smtxen smtxwin 0 smtxgo smtxtmr smtxcpw 5 1234 3 712 6 4 5 9 5 smtxpraif smtxpwaif smtxcpr 16 8 9 10 11 12 13 14 15 16 smtx_signal smtxen smtxwin 0 smtxgo smtxtmr smtxcpw 5 1234 7 6 9 smtxpraif smtxpwaif smtxcpr 16 8 9 10 11 12 13 14 15 16
? 2014 microchip technology inc. ds40001737a_cn 287 ? pic12(l)f1612/16(l)f1613 25.7 smt 3 ??? ? pw ? ? pr ? ? pir pie ?? 25.7.1 pw pr ? smtx ? smtxcpw smtxcpr ??? smt ? ?????????? smtxcpw smtxpwaif smtxpwaie ???? pir4 pie4 smtxcpr smtxpraif smtxpraie ? ???? pir4 pie4 ? smt ??? smtxclk ? ???????? ?? cpu ??? 25.7.2 25.1.2 ?? smt smtxtmr smtxpr ???? 25.3 ? smtxif smtxie ???? pir4 pie4
pic12(l)f1612/16(l)f1613 ds40001737a_cn 288 ? ? 2014 microchip technology inc. 25.8 ? smt ? 25-1 smtxcon0 smtx ?? 0 r/w-0/0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 en (1) ? stp wpol spol cpol smtxps<1:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7 en smtx ? (1) 1 = ? smtx 0 = ? smtx ????? bit 6 ? ? 0 bit 5 stp smtx ?? smtxtmr = smtxpr ? 1 = ? smtxpr ?? 0 = ? 24'h000000 ?? bit 4 wpol smtxwin ?? 1 = smtxwin ???? / ?? 0 = smtxwin ???? / ? bit 3 spol smtxsig ?? 1 = smtx_signal ?? / ?? 0 = smtx_signal ?? / ? bit 2 cpol smtx ??? 1 = smtxtmr ?????? 0 = smtxtmr ????? bit 1-0 smtxps<1:0> smtx ??? 11 = ?? = 1:8 10 = ?? = 1:4 01 = ?? = 1:2 00 = ?? = 1:1 ? 1 en ? 0 ???
? 2014 microchip technology inc. ds40001737a_cn 289 ? pic12(l)f1612/16(l)f1613 ? 25-2 smtxcon1 smtx ?? 1 r/w/hc-0/0 r/w-0/0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 smtxgo repeat ? ? mode<3:0> bit 7 bit 0 ?? hc = ? hs = ? 1 r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 smtxgo smtx ?? 1 = ???? 0 = ??? bit 6 repeat smtx ??? 1 = ?????? 0 = ????? bit 5-4 ?? ? 0 bit 3-0 mode<3:0> smtx ??? 1111 = ? ? ? 1011 = 1010 = ? 1001 = ?? 1000 = 0111 = ? 0110 = ? 0101 = ??? 0100 = ? 0011 = ?????? 0010 = ????? 0001 = ??? 0000 = ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 290 ? ? 2014 microchip technology inc. ? 25-3 smtxstat smtx ??? r/w/hc-0/0 r/w/hc-0/ 0 r/w/hc-0/0 u-0 u-0 r-0/0 r-0/0 r-0/0 cprup cpwup rst ? ?tswsas bit 7 bit 0 ?? hc = ? hs = ? 1 r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7 cprup smtx ?? 1 = smtxprx ? 0 = smtxprx ? bit 6 cpwup smtx ?? 1 = smtxcpwx ? 0 = smtxcpwx ? bit 5 rst smtx ??? 1 = smtxtmrx ? 0 = smtxtmrx ? bit 4-3 ? ? 0 bit 2 ts smtx ??? 1 = smtx ?? 0 = smtx ?? bit 1 ws smtwinx ??? 1 = smtx ? 0 = smtx ?? bit 0 as smtx_signal ??? 1 = ? smt ? 0 = ? smt ?
? 2014 microchip technology inc. ds40001737a_cn 291 ? pic12(l)f1612/16(l)f1613 ? 25-4 smtxclk smtx ??? u-0 u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? ? csel<2:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-3 ? ? 0 bit 2-0 csel<2:0> smtx ?? 111 = 110 = 101 = 100 = mfintosc/16 011 = lfintosc 010 = hfintosc 16 mhz 001 = f osc /4 000 = f osc
pic12(l)f1612/16(l)f1613 ds40001737a_cn 292 ? ? 2014 microchip technology inc. ? 25-5 smtxwin smtx ?? u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? wsel<3:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-4 ? ? 0 bit 3-0 wsel<3:0> smtx ? 1111 = ? ? ? 1001 = 1000 = tmr6_postscaled 0111 = tmr4_postscaled 0110 = tmr2_postscaled 0101 = zcd1_out 0100 = ccp2_out 0011 = ccp1_out 0010 = c2_out_sync (1) 0001 = c1_out_sync 0000 = smtwinx ? 1 pic16(l)f1613 pic12(l)f1612 ?
? 2014 microchip technology inc. ds40001737a_cn 293 ? pic12(l)f1612/16(l)f1613 ? 25-6 smtxsig smtx ??? u-0 u-0 u-0 u-0 u-0 r/w-0/0 r/w-0/0 r/w-0/0 ? ? ? ? ? ssel<2:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = q = ??? bit 7-3 ? ? 0 bit 2-0 ssel<2:0> smtx ?? 1111 = ? ? ? 111 = 110 = tmr6_postscaled 101 = tmr4_postscaled 100 = tmr2_postscaled 011 = zcd1_out 010 = c2_out_sync (1) 001 = c1_out_sync 000 = smtxsig ? 1 pic16(l)f1613 pic12(l)f1612 ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 294 ? ? 2014 microchip technology inc. ? 25-7 smtxtmrl smtx ??? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 smtxtmr<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxtmr<7:0> smt ? ? 25-8 smtxtmrh smtx ??? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 smtxtmr<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxtmr<15:8> smt ? ? 25-9 smtxtmru smtx ??? r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 r/w-0/0 smtxtmr<23:16> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxtmr<23:16> smt ?
? 2014 microchip technology inc. ds40001737a_cn 295 ? pic12(l)f1612/16(l)f1613 ? 25-10 smtxcprl smtx ???? r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x smtxcpr<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxcpr<7:0> smt ? ? 25-11 smtxcprh smtx ???? r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x smtxcpr<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxcpr<15:8> smt ? ? 25-12 smtxcpru smtx ???? r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x smtxcpr<23:16> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxcpr<23:16> smt ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 296 ? ? 2014 microchip technology inc. ? 25-13 smtxcpwl smtx ???? r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x smtxcpw<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxcpw<7:0> smt pw ? ? 25-14 smtxcpwh smtx ???? r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x smtxcpw<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxcpw<15:8> smt pw ? ? 25-15 smtxcpwu smtx ???? r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x r-x/x smtxcpw<23:16> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxcpw<23:16> smt pw ?
? 2014 microchip technology inc. ds40001737a_cn 297 ? pic12(l)f1612/16(l)f1613 ? 25-16 smtxprl smtx ??? r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 smtxpr<7:0> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxpr<7:0> ? smt ??? ? 25-17 smtxprh smtx ??? r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 smtxpr<15:8> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxpr<15:8> ? smt ??? ? 25-18 smtxpru smtx ??? r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 r/w-x/1 smtxpr<23:16> bit 7 bit 0 ?? r = ? w = ? u = ?? 0 u = x = ? -n/n = por bor ?? / ?? 1 = 10 = bit 7-0 smtxpr<23:16> ? smt ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 298 ? ? 2014 microchip technology inc. 25-2 smtx ??? bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ? ? smt1clk ? ? ? ? ? csel<2:0> 291 smt1con0 en ? stp wpol spol cpol smt1ps<1:0> 288 smt1con1 smt1go repeat ? ? mode<3:0> 289 smt1cprh smt1cpr<15:8> 295 smt1cprl smt1cpr<7:0> 295 smt1cpru smt1cpr<23:16> 295 smt1cpwh smt1cpw<15:8> 296 smt1cpwl smt1cpw<7:0> 296 smt1cpwu smt1cpw<23:16> 296 smt1prh smt1pr<15:8> 297 smt1prl smt1pr<7:0> 297 smt1pru smt1pr<23:16> 297 smt1sig ? ? ? ? ? ssel<2:0> 293 smt1stat cprup cpwup rst ? ?tswsas 290 smt1tmrh smt1tmr<15:8> 294 smt1tmrl smt1tmr<7:0> 294 smt1tmru smt1tmr<23:16> 294 smt1win ? ? ? ? wsel<3:0> 292 smt2clk ? ? ? ? ? csel<2:0> 291 smt2con0 en ? stp wpol spol cpol smt2ps<1:0> 288 smt2con1 smt2go repeat ? ? mode<3:0> 289 smt2cprh smt2cpr<15:8> 295 smt2cprl smt2cpr<7:0> 295 smt2cpru smt2cpr<23:16> 295 smt2cpwh smt2cpw<15:8> 296 smt2cpwl smt2cpw<7:0> 296 smt2cpwu smt2cpw<23:16> 296 smt2prh smt2pr<15:8> 297 smt2prl smt2pr<7:0> 297 smt2pru smt2pr<23:16> 297 smt2sig ? ? ? ? ? ssel<2:0> 293 smt2stat cprup cpwup rst ? ?tswsas 290 smt2tmrh smt2tmr<15:8> 294 smt2tmrl smt2tmr<7:0> 294 smt2tmru smt2tmr<23:16> 294 smt2win ? ? ? ? wsel<3:0> 292 ?? x = ? u = ? ? = ??? 0 q = ??? smtx ????
? 2014 microchip technology inc. ds40001737a_cn 299 ? pic12(l)f1612/16(l)f1613 26.0 ? icsp? icsp? ??? ?????? ?????? icsp? ? 5 ? icspclk ? icspdat ? mclr /v pp ? v dd ? v ss ? / ?????? id ?? icspdat ? ?? i/o icspclk ?? icsp? ?? pic12(l)f1501/ pic16(l)f150x memory programming specification ds41573 26.1 ????? ? icspclk icspdat ????? mclr /v pp ??? v ihh ?? ???? 26.2 ????? ?????? ?? v dd ?? pic ? mcu ?????? lvp ? 1 ????? icsp ?? ????? icsp ?? lvp ? 0 ???????2s 1. mclr ?? v il 2. ? icspclk ???? icspdat ? 32 ? ? ??? / ???? ? mclr ? v il ????? lvp = 1 mclr ??????? 6.5 mclr lvp ?????????? 0 26.3 ??? ??? icsp? ??? ? 6p6c 6 ? 6 ? rj-11 ? 26-1 ? 26-1 icd rj-11 ? ?? pickit? ?? 0.1 ? ?? 6 ?? ? 26-2 1 2 3 4 5 6 ? ? pc v pp /mclr v ss icspclk v dd icspdat nc ? * 1 = v pp /mclr 2 = v dd ?? 3 = v ss ? 4 = icspdat 5 = icspclk 6 =
pic12(l)f1612/16(l)f1613 ds40001737a_cn 300 ? ? 2014 microchip technology inc. ? 26-2 pickit? ? ??? pcb ?? ?? ?? ?????? ??? ? 26-3 ? 26-3 icsp? ?? 1 3 5 6 4 2 6? 1 ?/?a? 6?aa * 1=v pp /mclr 2=v dd ,a?+ $d 3=v ss ? ? 4 = icspdat 5 = icspclk 6= e2y * !8 6 6?|? 0.100" kc? ?e2y 0.025" ,x?66?? rev. 10-000128a 7/30/2013 ?u4/?,x < v dd v dd v ss v ss v pp mclr/v pp v dd db js icspdat icspclk *** f?4/? ? 7?!7 e2y * lh/? <? bl??u5n?? rev. 10-000129a 7/30/2013
? 2014 microchip technology inc. ds40001737a_cn 301 ? pic12(l)f1612/16(l)f1613 27.0 ?? ???? 14 ???? ? ???? ? ?? ? ??? ?????? 27-3 mpasm tm ?? ? ? 2 3 ? ?? ??? ? ??? call callw ? ?????? return retlw retfie ? ???? goto bra brw btfss btfsc decfsz incsfz ? ?????? ?????? ?? ??? 4 ??? 4 mhz ?????? 1 mhz ????? 0xhh ??? h ???? 27.1 - ? - ?????????? - ? - read-modify-write r-m-w ??? d ???? ???????? 27-1 ?? 27-2 ? ? ? f ??? 0x00 0x7f w ? ? b 8 ???? k ? x ? = 0 1 x = 0 ??? microchip ???? d ??? d = 0 w d = 1 ?? f ?? d = 1 n fsr indf ? 0-1 mm ? / / ???? ? ? pc to ? c ? dc ? z ?? pd
pic12(l)f1612/16(l)f1613 ds40001737a_cn 302 ? ? 2014 microchip technology inc. ? 27-1 ???? ????? 13 8 7 6 0 d = 0 w d f ?? d = 1 f f = 7 ??? ??? 13 10 9 7 6 0 b ? f ?? b = 3 ?? f = 7 ??? ??? 13 8 7 0 k k = 8 ? 13 11 10 0 k k = 11 ? ?? call goto ? movlp ? 13 5 4 0 k k = 5 ? movlb ? 13 9 8 0 k k = 9 ? bra ? fsr ?? 13 7 6 5 0 n k n = ? fsr fsr ? 13 7 6 0 k k = 7 ? 13 3 2 1 0 n m ?? n = ? fsr m = 2 ??? k = 6 ? 13 0 ?
? 2014 microchip technology inc. ds40001737a_cn 303 ? pic12(l)f1612/16(l)f1613 27-3 ??? ? ? 14 ? ?? ? msb lsb ????? addwf addwfc andwf asrf lslf lsrf clrf clrw comf decf incf iorwf movf movwf rlf rrf subwf subwfb swapf xorwf f, d f, d f, d f, d f, d f, d f ? f, d f, d f, d f, d f, d f f, d f, d f, d f, d f, d f, d w f w f w f ? ? ? f w f ? f ? 1 f 1 w f ? f w ?? f f ? f ? f ? w f ? w f ?? w f ? 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 00 11 00 11 11 11 00 00 00 00 00 00 00 00 00 00 00 11 00 00 0111 1101 0101 0111 0101 0110 0001 0001 1001 0011 1010 0100 1000 0000 1101 1100 0010 1011 1110 0110 dfff dfff dfff dfff dfff dfff lfff 0000 dfff dfff dfff dfff dfff 1fff dfff dfff dfff dfff dfff dfff ffff ffff ffff ffff ffff ffff ffff 00xx ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff c dc z c dc z z c z c z c z z z z z z z z c c c dc z c dc z z 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ??? decfsz incfsz f, d f, d f ? 1 ? 0 f 1 ? 0 1 2 1 2 00 00 1011 1111 dfff dfff ffff ffff 1, 2 1, 2 ??? bcf bsf f, b f, b f ? f ? 1 1 1 01 01 00bb 01bb bfff bfff ffff ffff 2 2 ? btfsc btfss f, b f, b f ?? 0 f ?? 1 1 2 1 2 01 01 10bb 11bb bfff bfff ffff ffff 1, 2 1, 2 ? addlw andlw iorlw movlb movlp movlw sublw xorlw k k k k k k k k w w ? w ? ? bsr ? pclath ? w ? w w ? 1 1 1 1 1 1 1 1 11 11 11 00 11 11 11 11 1110 1001 1000 0000 0001 0000 1100 1010 kkkk kkkk kkkk 001k 1kkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk c dc z z z c dc z z ? 1 pc ?????????? nop ? 2 ??? indf ?? fsr msb 1 ??????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 304 ? ? 2014 microchip technology inc. 27-3 ??? ? ? 14 ? ?? ? msb lsb ?? bra brw call callw goto retfie retlw return k ? k ? k k k ? ? ? w ? ? ? w ? ?? ? ? w ??? 2 2 2 2 2 2 2 2 11 00 10 00 10 00 11 00 001k 0000 0kkk 0000 1kkk 0000 0100 0000 kkkk 0000 kkkk 0000 kkkk 0000 kkkk 0000 kkkk 1011 kkkk 1010 kkkk 1001 kkkk 1000 ? clrwdt nop option reset sleep tris ? ? ? ? ? f ?? ? w ? option_reg ? ?? w ? tris ? 1 1 1 1 1 1 00 00 00 00 00 00 0000 0000 0000 0000 0000 0000 0110 0000 0110 0000 0110 0110 0100 0000 0010 0001 0011 0fff to pd to pd ? c ? addfsr moviw movwi n, k n mm k[n] n mm k[n] k fsrn ?? fsrn ? w ? / / ?? mm indfn ? w ??? w ??? fsrn ? / / ?? mm w ? indfn ??? 1 1 1 1 1 11 00 11 00 11 0001 0000 1111 0000 1111 0nkk 0001 0nkk 0001 1nkk kkkk 0nmm kkkk 1nmm kkkk z z 2, 3 2 2, 3 2 ? 1 pc ?????????? nop ? 2 ??? indf ?? fsr msb 1 ?????? 3 moviw movwi ???
? 2014 microchip technology inc. ds40001737a_cn 305 ? pic12(l)f1612/16(l)f1613 27.2 ?? addfsr fsrn ? [ ] addfsr fsrn, k -32 k 31 n [0, 1] fsr(n) + k fsr(n) ??? ? 6 k fsrnh:fsrnl ??? fsrn ?? 0000h-ffffh ????? fsr ? ?? addlw w ? [ ] addlw k 0 k 255 (w) + k (w) ??? c dc z ? w ? 8 k ? w ? addwf w f ? [ ] addwf f,d 0 f 127 d [ 0 , 1 ] (w) + (f) ( ?? ) ??? c dc z ? w ?? f ? d ? 0 w ? d ? 1 ?? f addwfc w f ? [ ] addwfc f {,d} 0 f 127 d [0,1] (w) + (f) + (c) dest ??? c dc z ? w ??? ? f ? d ? 0 w ? d ? 1 ?? f andlw w ? ? [ ] andlw k 0 k 255 (w) .and.(k) (w) ??? z ? w ? 8 k ?? w ? andwf w f ? ? [ ] andwf f,d 0 f 127 d [ 0 , 1 ] (w) .and.(f) ( ?? ) ??? z ? w ?? f ? ?? d ? 0 w ? d ? 1 ?? f asrf ? [ ] asrf f {,d} 0 f 127 d [0,1] (f<7>) dest<7> (f<7:0>) dest<6:0> (f<0>) c ??? c z ? ? f ??? 1 msb ?? d ? 0 w ? d ? 1 ?? f ? f c
pic12(l)f1612/16(l)f1613 ds40001737a_cn 306 ? ? 2014 microchip technology inc. bcf f ? ? [ ] bcf f,b 0 f 127 0 b 7 0 (f) ??? ? ? f ? b ? bra ? ? [ ] bra label [ ] bra $+k -256 label - pc + 1 255 -256 k 255 (pc) + 1 + k pc ??? ? 9 k pc ? pc ????? ?? pc+1+k ??? ????? ? brw ? w ? ? [ ] brw (pc) + (w) pc ??? ? w ?? pc ? pc ????? ?? pc+1+(w) ? ???? bsf f ? 1 ? [ ] bsf f,b 0 f 127 0 b 7 1 (f) ??? ? ? f b 1 btfsc f ?? 0 ? [ ] btfsc f,b 0 f 127 0 b 7 (f) = 0 ??? ? ? f b ? 1 ?? ? ? f b ? 0 ? ????? nop ???? ???? btfss f ?? 1 ? [ ] btfss f,b 0 f 127 0 b < 7 (f) = 1 ??? ? ? f b ? 0 ?? ? b ? 1 ??? ??? nop ??????? ?
? 2014 microchip technology inc. ds40001737a_cn 307 ? pic12(l)f1612/16(l)f1613 call ? ? [ ] call k 0 k 2047 (pc) + 1 tos k pc<10:0> (pclath<6:3>) pc<14:11> ??? ? ???? pc + 1 ?? 11 ????? pc <10:0> pc ?? pclath ?? call ??? callw ? w ? ? [ ] callw (pc) + 1 tos (w) pc<7:0> (pclath<6:0>) pc<14:8> ??? ? ? w ??? ? pc + 1 ????? w ?? pc<7:0> pclath ?? pc<14:8> callw ? ?? clrf f ? [ ] clrf f 0 f 127 00h (f) 1 z ??? z ? ? f ?? z 1 clrw w ? [ ] clrw 00h (w) 1 z ??? z ? w ??? z 1 clrwdt ?? ? [ ] clrwdt 00h wdt 0 wdt ?? 1 to 1 pd ??? to pd ? clrwdt ????? ??? to pd 1 comf f ? ? [ ] comf f,d 0 f 127 d [ 0 , 1 ] (f ) ( ?? ) ??? z ? ? f ? d ? 0 w ? d ? 1 ?? f decf f ? 1 ? [ ] decf f,d 0 f 127 d [ 0 , 1 ] (f) - 1 ( ?? ) ??? z ? ? f ?? 1 d ? 0 w ? d ? 1 ?? f
pic12(l)f1612/16(l)f1613 ds40001737a_cn 308 ? ? 2014 microchip technology inc. decfsz f ? 1 ? 0 ? [ ] decfsz f,d 0 f 127 d [ 0 , 1 ] (f) - 1 ( ?? ) = 0 ??? ? ? f ?? 1 d ? 0 w ? d ? 1 ?? f ? 1 ??? ? 0 ??? nop ?? ?????? goto ? ? [ ] goto k 0 k 2047 k pc<10:0> pclath<6:3> pc<14:11> ??? ? goto ??? 11 ?? pc <10:0> pc pclath<4:3> ?? goto ??? incf f 1 ? [ ] incf f,d 0 f 127 d [ 0 , 1 ] (f) + 1 ( ?? ) ??? z ? ? f ? 1 d ? 0 w ? d ? 1 ?? f incfsz f 1 ? 0 ? [ ] incfsz f,d 0 f 127 d [ 0 , 1 ] (f) + 1 ( ?? ) = 0 ??? ? ? f ? 1 d ? 0 w ? d ? 1 ?? f ? 1 ??? ? 0 ??? nop ?? ?????? iorlw w ? ? [ ] iorlw k 0 k 255 (w) .or. k (w) ??? z ? w ? 8 k ?? w ? iorwf w f ? ? [ ] iorwf f,d 0 f 127 d [ 0 , 1 ] (w) .or.(f) ( ?? ) ??? z ? w ?? f ? ?? d ? 0 w ? d ? 1 ?? f
? 2014 microchip technology inc. ds40001737a_cn 309 ? pic12(l)f1612/16(l)f1613 lslf ? ? [ ] lslf f {,d} 0 f 127 d [0,1] (f<7>) c (f<6:0>) dest<7:1> 0 dest<0> ??? c z ? ? f ??? 1 0 lsb d ? 0 w ? d ? 1 ? f lsrf ? ? [ ] lsrf f {,d} 0 f 127 d [0,1] 0 dest<7> (f<7:0>) dest<6:0> (f<0>) c ??? c z ? ? f ??? 1 0 msb d ? 0 w ? d ? 1 ? f ? f 0 c ? f c 0 movf f ? [ ] movf f,d 0 f 127 d [ 0 , 1 ] (f) ( ?? ) ??? z ? d ??? f ? ?? d = 0 ?? ? w ? d = 1 ?? ??? f ???? z ??? d = 1 ?? ? ? 1 ? 1 ? movf fsr, 0 ?? w= fsr ?? z= 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 310 ? ? 2014 microchip technology inc. moviw indfn ?? w ? [ ] moviw ++fsrn [ ] moviw --fsrn [ ] moviw fsrn++ [ ] moviw fsrn-- [ ] moviw k[fsrn] n [ 0 , 1 ] mm [ 00 , 01 , 10 , 11 ] -32 k 31 indfn w ???? ? fsr + 1 ? ? fsr - 1 ?? ? fsr + k ?? ?? fsr ???? ? fsr + 1 ? ? fsr - 1 ?? ? ??? z ?? ? mm ? ++fsrn 00 ?? --fsrn 01 fsrn++ 10 ? fsrn-- 11 ? ? w ??? indfn ?????? ?? / ????? / / ?? ? fsrn ? indfn ?? indfn ???? fsrn ????? fsrn ?? 0000h-ffffh ? / ??? ?? movlb ? bsr ? [ ] movlb k 0 k 31 k bsr ??? ? 5 k ??? bsr movlp ? pclath ? [ ] movlp k 0 k 127 k pclath ??? ? 7 k ? pclath ? movlw ? w ? [ ] movlw k 0 k 255 k (w) ??? ? 8 k ? w ? ? 0 ? 1 ? 1 ? movlw 0x5a ?? w = 0x5a movwf w ?? f ? [ ] movwf f 0 f 127 (w) (f) ??? ? w ???? f ? 1 ? 1 ? movwf option_reg ??? option_reg = 0xff w = 0x4f ?? option_reg = 0x4f w = 0x4f
? 2014 microchip technology inc. ds40001737a_cn 311 ? pic12(l)f1612/16(l)f1613 movwi w ?? indfn ? [ ] movwi ++fsrn [ ] movwi --fsrn [ ] movwi fsrn++ [ ] movwi fsrn-- [ ] movwi k[fsrn] n [ 0 , 1 ] mm [ 00 , 01 , 10 , 11 ] -32 k 31 w indfn ???? ? fsr + 1 ? ? fsr - 1 ?? ? fsr + k ?? ?? fsr ???? ? fsr + 1 ? ? fsr - 1 ?? ? ??? ?? ? mm ? ++fsrn 00 ?? --fsrn 01 fsrn++ 10 ? fsrn-- 11 ? ? w ??? indfn ?????? ?? / ????? / / ?? ? fsrn ? indfn ?? indfn ???? fsrn ????? fsrn ?? 0000h-ffffh ? / ??? ?? fsrn ? / ?? ?? nop ? ? [ ] nop ? ??? ? ?? ? 1 ? 1 ? nop option w ? option_reg ? ? [ ] option (w) option_reg ??? ? w ??? option_reg ? reset ? [ ] reset ?? pcon ? ri ? ??? ? ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 312 ? ? 2014 microchip technology inc. retfie ? ? [ ] retfie tos pc 1 gie ??? ? ????? top-of-stack tos ? pc ??? gie intcon<7> 1 ? ??? ? 1 ? 2 ? retfie ? pc = tos gie = 1 retlw ? w ? [ ] retlw k 0 k 255 k (w) tos pc ??? ? 8 k ? w ?? ??? ??? ? 1 ? 2 ? table call table;w contains table ;offset value ? ;w now has table value ? ? addwf pc ;w = offset retlw k1 ;begin table retlw k2 ; ? ? ? retlw kn ; end of table ??? w= 0x07 ?? w= k8 ? return ??? ? [ ] return tos pc ??? ? ??????? tos ?? ?? rlf f ? ? [ ] rlf f,d 0 f 127 d [ 0 , 1 ] ? ??? c ? ? f ??? ? 1 d ? 0 w ? d ? 1 ?? f ? 1 ? 1 ? rlf reg1,0 ??? reg1 = 1110 0110 c=0 ?? reg1 = 1110 0110 w = 1100 1100 c=1 ? f c
? 2014 microchip technology inc. ds40001737a_cn 313 ? pic12(l)f1612/16(l)f1613 rrf f ? ? [ ] rrf f,d 0 f 127 d [ 0 , 1 ] ? ??? c ? ? f ??? ? 1 d ? 0 w ? d ? 1 ?? f sleep ?? ? [ ] sleep 00h wdt 0 wdt ?? 1 to 0 pd ??? to pd ? ?? pd ???? to 1 ???? ? ????? ? f c sublw ? w ? [ ] sublw k 0 k 255 k - (w) ( w) ??? c dc z ? 8 k ? w ? ????? w ? subwf f ? w ? [ ] subwf f,d 0 f 127 d [ 0 , 1 ] (f) - (w) ( ?? ) ??? c dc z ? ? f ?? w ? ????? d ? 0 w ? d ? 1 ?? f subwfb f ? w ? subwfb f {,d} 0 f 127 d [0,1] (f) ? (w) ? (b ) dest ??? c dc z ? f ??? w ?? ? ???? ? d ? 0 w ? d ? 1 ?? f c = 0 w > k c = 1 w k dc = 0 w<3:0> > k<3:0> dc = 1 w<3:0> k<3:0> c = 0 w > f c = 1 w f dc = 0 w<3:0> > f<3:0> dc = 1 w<3:0> f<3:0>
pic12(l)f1612/16(l)f1613 ds40001737a_cn 314 ? ? 2014 microchip technology inc. swapf f ?? ? [ ] swapf f,d 0 f 127 d [ 0 , 1 ] (f<3:0>) ( ?? <7:4>) (f<7:4>) ( ?? <3:0>) ??? ? ? f ???????? d ? 0 w ? d ? 1 ?? f tris w ? tris ? ? [ ] tris f 5 f 7 (w) tris ? f ??? ? w ??? tris ? f = 5 ?? trisa f = 6 ?? trisb f = 7 ?? trisc xorlw w ? ? [ ] xorlw k 0 k 255 (w) .xor. k ( w) ??? z ? w ? 8 k ?? w ? xorwf w f ? ? [ ] xorwf f,d 0 f 127 d [ 0 , 1 ] (w) .xor.(f) ( ?? ) ??? z ? w ?? f ? ?? d ? 0 w ? d ? 1 ? f
? 2014 microchip technology inc. ds40001737a_cn 315 ? pic12(l)f1612/16(l)f1613 28.0 Z 28.1 ? (?) ? ............................................................................................................................... .............-40c +125c ? ............................................................................................................................... .............-65c +150c v ss ?? v dd pic12f1612/16f1613 ....... .............. .............. .............. .............. .............. .............. ... -0.3v +6.5v pic12lf1612/16lf1613 ......... .............. .............. .............. .............. .............. ........... -0.3v +4.0v mclr ............................................................................................................................... -0.3v +9.0v ............................................................................................................. -0.3v v dd + 0.3v v ss (1) -40c t a +85c ............................................................................................................. 170 ma -40c t a +125c............................................................................................................... 70 ma v dd (1) -40c t a +85c ............................................................................................................. 170 ma -40c t a +125c .............................................................................................................. 70 ma i/o ............................................................................................................................... ........ 25 ma ? ik v pin < 0 v pin > v dd .................................................................................................... 20 ma ? 1 ? i/o ??????????? 28-6 ??Z? ? ? ??????? ???Z??a??????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 316 ? ? 2014 microchip technology inc. 28.2 ? ?? ? v ddmin v dd v ddmax ?? t a _ min t a t a _ max v dd ? (1) pic12lf1612/16lf1613 v ddmin fosc 16 mhz ...................................................................................................... +1.8v v ddmin fosc 32 mhz ...................................................................................................... +2.5v v ddmax ............................................................................................................................... ..... +3.6v pic12f1612/16f1613 v ddmin fosc 16 mhz ...................................................................................................... +2.3v v ddmin fosc 32 mhz ...................................................................................................... +2.5v v ddmax ............................................................................................................................... ..... +5.5v t a ?? ?? t a _ min ............................................................................................................................... ....... -40c t a _ max ............................................................................................................................... ..... +85c ?? t a _ min ............................................................................................................................... ....... -40c t a _ max ............................................................................................................................... ... +125c ? 1 d001 ds ??
? 2014 microchip technology inc. ds40001737a_cn 317 ? pic12(l)f1612/16(l)f1613 ? 28-1 ????? -40c t a +125c pic12f1612/16f1613 ? 28-2 ????? -40c t a +125c pic12lf1612/16lf1613 rev. 10-000130b 9/19/2013 5.5 2.5 2.3 01632 v dd ? v ? ne)[? mhz ? ? 1 ?????? 2 28-7 ???????? rev. 10-000131b 9/19/2013 3.6 2.5 1.8 01632 v dd ? v ? ne)[? mhz ? ? 1 ?????? 2 28-7 ????????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 318 ? ? 2014 microchip technology inc. 28.3 ? 28-1 ? pic12lf1612/16lf1613 ? pic12f1612/16f1613 ? ? ? ? d001 v dd ? v ddmin 1.8 2.5 ? ? v ddmax 3.6 3.6 v v f osc 16 mhz f osc 32 mhz d001 2.3 2.5 ? ? 5.5 5.5 v v f osc 16 mhz f osc 32 mhz d002* v dr ram ??? (1) 1.5 ? ? v ?? d002* 1.7 ? ? v ?? d002a* v por ?y??? (2) ?1.6?v d002a* ? 1.6 ? v d002b* v porr * ?y?? (2) ?0.8?v d002b* ? 1.5 ? v d003 v fvr ?? ? 1.024 ? v -40c t a +85c d003 ? 1.024 ? v -40c t a +85c d003a v adfvr adc fvr ? -4 ? +4 % 1x v fvr v dd 2.5v 2x v fvr v dd 2.5v d003a -4 ? +4 % 1x v fvr v dd 2.5v 2x v fvr v dd 2.5v 4x v fvr v dd 4.75v d003b v cdafvr ? fvr ? -4 ? +4 % 1x v fvr v dd 2.5v 2x v fvr v dd 2.5v d003b -4 ? +4 % 1x v fvr v dd 2.5v 2x v fvr v dd 2.5v 4x v fvr v dd 4.75v d004* s vdd v dd (2) 0.05 ? ? v/ms ????y?? d004* 0.05 ? ? v/ms ????y?? * ??? ? ??? 3.0v 25c ???? ? 1 ?? ram ???? v dd ? 2 ? 28-3 ? v dd ? por por ?
? 2014 microchip technology inc. ds40001737a_cn 319 ? pic12(l)f1612/16(l)f1613 ? 28-3 v dd ? por por ? v dd v por v porr v ss v ss npor (1) t por (3) por ? ? 1 npor ??????? 2 t por ?? 1 s 3 t vlow ?? 2.7 s t vlow (2) s vdd
pic12(l)f1612/16(l)f1613 ds40001737a_cn 320 ? ? 2014 microchip technology inc. 28-2 i dd (1,2) pic12lf1612/16lf1613 ? pic12f1612/16f1613 ? ? ? ? v dd ? d013 ? 30 65 a1.8 f osc = 1 mhz ?? ecm ??? ? 55 100 a3.0 d013 ? 65 110 a 2.3 f osc = 1 mhz ?? ecm ??? ? 85 140 a 3.0 ? 115 190 a 5.0 d014 ? 115 190 a1.8 f osc = 4 mhz ?? ecm ??? ? 210 310 a3.0 d014 ? 180 270 a 2.3 f osc = 4 mhz ?? ecm ??? ? 240 365 a 3.0 ? 295 460 a 5.0 d015 ? 9.6 36 a1.8 f osc = 31 khz lfintosc -40c t a +85c ? 16.2 60 a3.0 d015 ? 39 84 a 2.3 f osc = 31 khz lfintosc -40c t a +85c ? 45 90 a 3.0 ? 51 108 a 5.0 d016 ? 215 360 a1.8 f osc = 500 khz hfintosc ? 275 480 a3.0 d016 ? 270 450 a 2.3 f osc = 500 khz hfintosc ? 300 500 a 3.0 ? 350 620 a 5.0 d017* ? 410 660 a1.8 f osc = 8 mhz hfintosc ? 630 970 a3.0 d017* ? 530 750 a 2.3 f osc = 8 mhz hfintosc ? 660 1100 a 3.0 ? 730 1200 a 5.0 d018 ? 600 940 a1.8 f osc = 16 mhz hfintosc ? 970 1400 a3.0 d018 ? 780 1200 a 2.3 f osc = 16 mhz hfintosc ? 1000 1550 a 3.0 ? 1090 1700 a 5.0 * ??? ? ??? 3.0v 25c ??? ? ? 1 ?? i dd ??? osc1 = ?? i/o ??? v ss mclr = v dd wdt ? 2 ???????? i/o ??????? ????????
? 2014 microchip technology inc. ds40001737a_cn 321 ? pic12(l)f1612/16(l)f1613 d019 ? 1.6 5.0 ma 3.0 f osc = 32 mhz hfintosc ?1.96.0ma3.6 d019 ? 1.6 5.0 ma 3.0 f osc = 32 mhz hfintosc ? 1.9 6.0 ma 5.0 d020a ? 1.6 5.0 ma 3.0 f osc = 32 mhz ?? ech ??? ?1.96.0ma3.6 d020a ? 1.6 5.0 ma 3.0 f osc = 32 mhz ?? ech ??? ? 1.9 6.0 ma 5.0 d020b ? 6 16 a1.8 f osc = 32 khz ?? ecl ??? ?822 a3.0 d020b ? 13 28 a 2.3 f osc = 32 khz ?? ecl ??? ? 15 31 a 3.0 ? 16 36 a 5.0 d020c ? 19 35 a1.8 f osc = 500 khz ?? ecl ??? ?3255 a3.0 d020c ? 31 52 a 2.3 f osc = 500 khz ?? ecl ??? ? 38 65 a 3.0 ? 44 74 a 5.0 28-2 i dd (1,2) pic12lf1612/16lf1613 ? pic12f1612/16f1613 ? ? ? ? v dd ? * ??? ? ??? 3.0v 25c ??? ? ? 1 ?? i dd ??? osc1 = ?? i/o ??? v ss mclr = v dd wdt ? 2 ???????? i/o ??????? ????????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 322 ? ? 2014 microchip technology inc. 28-3 i pd (1,2) pic12lf1612/16lf1613 ??? pic12f1612/16f1613 ??? vregpm = 1 ? ? ? ? +85c ? +125c v dd ? d022 i pd ? 0.020 1.0 8.0 a1.8 ? wdt bor fvr M ? 0.025 2.0 9.0 a3.0 d022 i pd ? 0.25 3.0 10 a 2.3 ? wdt bor fvr M ??? ? 0.30 4.0 12 a 3.0 ? 0.40 6.0 15 a 5.0 d022a i pd ? 9.8 16 18 a 2.3 ? wdt bor fvr M ?? vregpm = 0 ? 10.3 18 20 a 3.0 ? 11.5 21 26 a 5.0 d023 ? 0.26 2.0 9.0 a1.8 wdt ? 0.44 3.0 10 a3.0 d023 ? 0.43 6.0 15 a 2.3 wdt ? 0.53 7.0 20 a 3.0 ? 0.64 8.0 22 a 5.0 d023a ? 15 28 30 a1.8 fvr ?18 3033 a3.0 d023a ? 18 33 35 a 2.3 fvr ? 19 35 37 a 3.0 ? 20 37 39 a 5.0 d024 ? 6.0 17 20 a3.0 bor d024 ? 7.0 17 30 a 3.0 bor ? 8.0 20 40 a 5.0 d24a ? 0.1 4.0 10 a3.0 lpbor d24a ? 0.35 5.0 14 a 3.0 lpbor ? 0.45 8.0 17 a 5.0 d026 ? 0.11 1.5 9.0 a1.8 adc ? 3 ? ? 0.12 2.7 10 a3.0 d026 ? 0.30 4.0 11 a 2.3 adc ? 3 ? ? 0.35 5.0 13 a 3.0 ? 0.45 8.0 16 a 5.0 d026a* ? 250 ? ? a1.8 adc ? 3 ?? ? 250 ? ? a3.0 d026a* ? 280 ? ? a 2.3 adc ? 3 ?? ? 280 ? ? a 3.0 ? 280 ? ? a 5.0 * ??? ? ??? 3.0v 25c ???? ?? tbd = ? 1 ???? i pd ? ?????? 2 ?????? i/o ???? v ss ??? 3 adc ?? frc
? 2014 microchip technology inc. ds40001737a_cn 323 ? pic12(l)f1612/16(l)f1613 d027 ? 7 22 25 a1.8 ? cxsp = 0 ? 8 23 27 a3.0 d027 ? 17 35 37 a 2.3 ? cxsp = 0 ? 18 37 38 a 3.0 ? 19 38 40 a 5.0 28-3 i pd (1,2) pic12lf1612/16lf1613 ??? pic12f1612/16f1613 ??? vregpm = 1 ? ? ? ? +85c ? +125c v dd ? * ??? ? ??? 3.0v 25c ???? ?? tbd = ? 1 ???? i pd ? ?????? 2 ?????? i/o ???? v ss ??? 3 adc ?? frc
pic12(l)f1612/16(l)f1613 ds40001737a_cn 324 ? ? 2014 microchip technology inc. 28-4 i/o ? ? ? ? ? ? v il ?? i/o ?? d030 ttl ? ? 0.8 v 4.5v v dd 5.5v d030a ? ? 0.15 v dd v1.8v v dd 4.5v d031 ?? ??0.2v dd v2.0v v dd 5.5v d032 mclr ??0.2v dd v v ih ?? i/o ?? d040 ttl 2.0 ? ? v 4.5v v dd 5.5v d040a 0.25 v dd + 0.8 ? ? v 1.8v v dd 4.5v d041 ?? 0.8 v dd ??v2.0v v dd 5.5v d042 mclr 0.8 v dd ??v i il ? (1) d060 i/o ? ? 5 125 na v ss v pin v dd ??? 85c ? 5 1000 na v ss v pin v dd ??? 125c d061 mclr (3) ? 50 200 na v ss v pin v dd ??? 85c i pur d070* 25 100 200 a v dd = 3.3v v pin = v ss 25 140 300 a v dd = 5.0v v pin = v ss v ol ?? (3) d080 i/o ? ??0.6v i ol = 8 ma v dd = 5v i ol = 6 ma v dd = 3.3v i ol = 1.8 ma v dd = 1.8v v oh ?? (3) d090 i/o ? v dd - 0.7 ? ? v i oh = 3.5 ma v dd = 5v i oh = 3 ma v dd = 3.3v i oh = 1 ma v dd = 1.8v d101a* cio i/o ? ? 50 pf * ??? ? ??? 3.0v 25c ???? ? 1 ?? 2 mclr ?????????????????? ?? 3 clkout ??2 osc2
? 2014 microchip technology inc. ds40001737a_cn 325 ? pic12(l)f1612/16(l)f1613 28-5 ?Z ? ? ? ? ? ?Z d110 v ihh mclr /v pp ??? 8.0 ? 9.0 v ? 2 d111 i ddp ?? ??10ma d112 v be ? v dd 2.7 ? v ddmax v d113 v pew ?? v dd v ddmin ?v ddmax v d114 i pppgm / ? mclr /v pp ? ?1.0?ma d115 i ddpgm / ? v dd ?? ?5.0? ma d121 e p ?? 10k ? ? e/w -40 c t a + 85 c ? 1 d122 v prw / ? v dd v ddmin ?v ddmax v d123 t iw ??? ?22.5ms d124 t retd ?? ?40? ?Z d125 e hefc ? 100k ? ? e/w 0 c t a + 60c 128 ??? ? ??? ?? 3.0v 25c ? ??? ? 1 ? 2 ????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 326 ? ? 2014 microchip technology inc. 28-6 ? ? ? th01 ja ? 62.2 c/w 20 dip ? 77.7 c/w 20 soic ? 87.3 c/w 20 ssop ? 43 c/w 20 qfn 4x4 mm ? th02 jc ??? 27.5 c/w 20 dip ? 23.1 c/w 20 soic ? 31.1 c/w 20 ssop ? 5.3 c/w 20 qfn 4x4 mm ? th03 t jmax ? 150 c th04 pd ?wpd = p internal + p i / o th05 p internal ? ?wp internal = i dd x v dd (1) th06 p i / o i/o ?wp i / o = (i ol * v ol ) + (i oh * (v dd - v oh )) th07 p der ? ?wp der = pd max (t j - t a )/ ja (2) ? 1 i dd ?????? 2 t a = ?? t j =
? 2014 microchip technology inc. ds40001737a_cn 327 ? pic12(l)f1612/16(l)f1613 28.4 ?????? ? 28-4 1. tpps2pps 2. tpps t f ? t ? ? pp pp cc ccp1 osc clkin ck clkout rd rd cs cs rw rd wr di sdix sc sckx do sdo ss ss dt t0 t0cki io i/o ? t1 t1cki mc mclr wr wr ? s f ? p h r i h v l z beq5 "? ? cl=50 pf ?by6?? 6? cl vss rev. 10-000133a 8/1/2013
pic12(l)f1612/16(l)f1613 ds40001737a_cn 328 ? ? 2014 microchip technology inc. ? 28-5 ?? 28-7 ??? ? ? ? ? ? os01 f osc ? clkin ? (1) dc ? 0.5 mhz ?? ecl dc ? 4 mhz ?? ecm dc ? 32 mhz ?? ech os02 t osc ? clkin (1) 31.25 ? ns ?? ec os03 t cy ? (1) 200 t cy dc ns t cy = 4/f osc * ??? ? ??? 3.0v 25c ???? ? 1 ? t cy ?????????? ?????? / ??? ?? clkin ??????? ?? dc ?? clkin clkout q4 q1 q2 q3 q4 q1 os02 os03 clkout ?? ? 1 28-10 os11 os12
? 2014 microchip technology inc. ds40001737a_cn 329 ? pic12(l)f1612/16(l)f1613 28-8 ? 28-6 v dd ??? hfintosc ?? ? ?? ? ? ? ? os08 hf osc ?? hfintosc ? (1) 2% ? 16.0 ? mhz v dd = 3.0v t a = 25c ? 2 os09 lf osc ? lfintosc ? ??31?khz ? 3 os10* t iosc st hfintosc ???? ??515 s os10a* t lfosc st lfintosc ???? ? ? 0.5 ? ms -40c t a +125c * ??? ? ??? 3.0v 25c ???? ? 1 ??????? v dd v ss ??? 0.1 f 0.01 f ?? 2 ? 28-6 v dd ??? hfintosc ??? ? 29-27 ??? hfintosc ? v dd = 1.8v pic12lf1612/16lf1613 ? 29-28 ??? hfintosc ? 2.3v v dd 5.5v 3 ? 29-25 v dd ??? lfintosc ?? pic12lf1612/16lf1613 ? 29-26 v dd ??? lfintosc ?? pic12f1612/16f1613 v dd (v) 125 85 60 25 0 -40 1.8 2.3 5.5 2% 3% 5% 5% temperature (c) rev. 10 -000 135b 12 /4/201 3 ? ? 29-27 ??? hfintosc ? v dd = 1.8v pic12lf1612/16lf1613 ? 29-28 ??? hfintosc ? 2.3v v dd 5.5v
pic12(l)f1612/16(l)f1613 ds40001737a_cn 330 ? ? 2014 microchip technology inc. 28-9 pll ??Z ? ? ? ? ? f10 f osc ?? 4?8mhz f11 f sys ? vco ??? 16 ? 32 mhz f12 t rc pll ? ?? ?? 2ms f13* clk clkout ? ? -0.25% ? +0.25% % * ??? ? ??? 5v 25c ??? ?
? 2014 microchip technology inc. ds40001737a_cn 331 ? pic12(l)f1612/16(l)f1613 ? 28-7 clkout i/o ? 28-10 clkout i/o ? ? ? ? ? ? os11 tosh2ckl f osc clkout ? (1) ? ? 70 ns 3.3v v dd 5.0v os12 tosh2ckh f osc clkout ? (1) ? ? 72 ns 3.3v v dd 5.0v os13 tckl2iov clkout ?? (1) ? ? 20 ns os14 tiov2ckh clkout ???? (1) t osc + 200 ns ? ? ns os15 tosh2iov fosc q1 ??? ? 50 70* ns 3.3v v dd 5.0v os16 tosh2ioi fosc q2 ??? i/o ??? 50 ? ? ns 3.3v v dd 5.0v os17 tiov2osh ? fosc q2 ?? i/o ??? 20 ? ? ns os18* tior ?? ? ? 40 15 72 32 ns v dd = 1.8v 3.3v v dd 5.0v os19* tiof ??? ? ? 28 15 55 30 ns v dd = 1.8v 3.3v v dd 5.0v os20* tinp int ????? 25 ? ? ns os21* tioc ??? 25 ? ? ns * ??? ? ??? 3.0v 25c ? ? 1 extrc ???? clkout ? 4 x t osc f osc clkout i/o ? i/o q4 q1 q2 q3 os11 os19 os13 os15 os18 os19 os20 os21 os17 os16 os14 os12 os18 ? ? ? ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 332 ? ? 2014 microchip technology inc. ? 28-8 ??????? v dd mclr ? por pwrt ? osc ? ? (1) ?? 33 32 30 31 34 i/o 34 ? 1 ??? (1)
? 2014 microchip technology inc. ds40001737a_cn 333 ? pic12(l)f1612/16(l)f1613 28-11 ???????? ? 28-9 ??? ? ? ? ? ? 30 t mc l mclr ?? 2 ? ? s 31 t wdtlp ????? 10 16 27 ms v dd = 3.3v-5v ? 1:16 ?? 32 t ost ? (1) ? 1024 ? t osc 33* t pwrt ??? 40 65 140 ms pwrte = 0 34* t ioz mclr ???? i/o ??? ??2.0 s 35 v bor ??? (2) 2.55 2.35 1.80 2.70 2.45 1.90 2.85 2.58 2.05 v v v borv = 0 borv = 1 pic12f1612/16f1613 borv = 1 pic12lf1612/16lf1613 36* v hyst ???? 02560mv-40c t a +85c 37* t bordc ????? 11635 sv dd v bor 38 v lpbor ???? 1.8 2.1 2.5 v lpbor = 1 * ??? ? ??? 3.0v 25c ???? ? 1 ?? ost ? 1024 ???? 2 ??????? v dd v ss ??? 0.1 f 0.01 f ?? v bor v dd ???? ???? 33 bor v bor v hyst 37
pic12(l)f1612/16(l)f1613 ds40001737a_cn 334 ? ? 2014 microchip technology inc. ? 28-10 timer0 timer1 ??? 28-12 timer0 timer1 ??? ? ? ? ? ? 40* t t 0h t0cki ?? ?? 0.5 t cy + 20 ? ? ns ?? 10 ? ? ns 41* t t 0l t0cki ?? ?? 0.5 t cy + 20 ? ? ns ?? 10 ? ? ns 42* t t 0p t0cki ?? ?? 20 t cy + 40 n ??ns n = ??? 45* t t 1h t1cki ? ?? ??? 0.5 t cy + 20 ? ? ns ??? 15 ? ? ns ? 30 ? ? ns 46* t t 1l t1cki ? ?? ??? 0.5 t cy + 20 ? ? ns ??? 15 ? ? ns ? 30 ? ? ns 47* t t 1p t1cki ? ?? ?? 30 t cy + 40 n ??ns n = ??? ? 60 ? ? ns 49* tckez tmr 1 ?????? 2 t osc ?7 t osc ? ????? * ??? ? ??? 3.0v 25c ???? t0cki t1cki 40 41 42 45 46 47 49 tmr0 tmr1
? 2014 microchip technology inc. ds40001737a_cn 335 ? pic12(l)f1612/16(l)f1613 28-13 ?? adc (1,2,3) v dd = 3.0v t a = 25c ? ? ? ? ad01 n r ? ??10 ad02 e il ?11.7lsbv ref = 3.0v ad03 e dl ? ?11lsb ?? v ref = 3.0v ad04 e off ? ?12.5lsbv ref = 3.0v ad05 e gn ?12.0lsbv ref = 3.0v ad06 v ref ? 1.8 ? v dd v v ref = (v rpos - v rneg ) ? 4 ad07 v ain v ss ?v ref v ad08 z ain ???? ??10k ? 0.01 f ?? ??? * ??? ? ??? 3.0v 25c ???? ? 1 ???? 2 adc ??????? 3 ?? 29.0 ???? 4 adc v ref ? adpref<0> ?
pic12(l)f1612/16(l)f1613 ds40001737a_cn 336 ? ? 2014 microchip technology inc. ? 28-11 adc ?? adc ?? f osc ? 28-12 adc ?? adc ? frc ad131 ad130 bsf adcon0, go q4 adc ? adc adres adif go ?? done 987 3210 1 t cy 6 ad133 1 t cy ad132 ad132 ad131 ad130 bsf adcon0, go q4 adc ? adc adres adif go ?? done 9 7 3210 ? 1 ? frc ? adc ?? adc ???? t cy ??? sleep ? ad133 6 8 1 t cy 1 t cy
? 2014 microchip technology inc. ds40001737a_cn 337 ? pic12(l)f1612/16(l)f1613 28-14 adc ?? 28-15 ?Z (1) ? ? ? ? ? ad130* t ad adc ? t adc 1.0 ? 6.0 s f osc adc ? frc t frc 1.0 2.0 6.0 s adcs<2:0> = x11 adc frc ?? ad131 t cnv ?? ??? (1) ?11?t ad go/done 1 ? ad132* t acq ?? ?5.0? s ad133* t hcd ???? ? ? 1/2 t ad 1/2 t ad + 1t cy ? ? f osc adcs<2:0> = x11 adc frc ?? * ??? ? ??? 3.0v 25c ???? ? 1 adres ?? t cy ?? v dd = 3.0v t a = 25c ? ? ? ? cm01 v ioff ?? ? 7.5 60 mv cxsp = 1 v icm = v dd /2 cm02 v icm ??? 0?vddv cm03 c mrr ?? ?50?db cm04a t resp (2) ?? ? 400 800 ns cxsp = 1 cm04b ??? ? 200 400 ns cxsp = 1 cm04c ?? ? 1200 ? ns cxsp = 0 cm04d ??? ? 550 ? ns cxsp = 0 cm05* t mc 2 ov ?????? ??10 s cm06 c hyster ?? ? 25 ? mv cxhys = 1 , cxsp = 1 * ??? ? 1 ?? 29.0 ???? 2 ???????? v dd /2 ?? v ss ? v dd ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 338 ? ? 2014 microchip technology inc. 28-16 ?? dac Z (1) 28-17 ?Z v dd = 3.0v t a = 25c ? ? ? ? dac01* c lsb ?v dd /256 ? v dac02* c acc ? ?? 1.5 lsb dac03* c r ? r ??? dac04* c st ?? (2) ??10 s * ??? ? 1 ?? 29.0 ???? 2 ?? dacr<4:0> 0000 ? 1111 ??? v dd = 3.0v t a = 25c ? ? ? ? zc01 z cpinv ??? ?0.75? v zc02 z csrc ? 300 ? a zc03 z csnk ? 300 ? a zc04 z cisw ?? ?1? s ??? ?1? s zc05 z cout ?? ?1? s ??? ?1? s * ???
? 2014 microchip technology inc. ds40001737a_cn 339 ? pic12(l)f1612/16(l)f1613 29.0 ??? ?? ? ??? ? v dd ???? ?? ? 25 c ????? ? ?? ?? +3 ? ? -3 ?????? ? ????????? ??? ??? ???
pic12(l)f1612/16(l)f1613 ds40001737a_cn 340 ? ? 2014 microchip technology inc. ? 29-1 ??? v oh i oh ? v dd = 5.5v pic12f1612/16f1613 ? 29-2 ??? v ol i ol ? v dd = 5.5v pic12f1612/16f1613 min. (-40c) typical (25c) max. (125c) 0 1 2 3 4 5 6 -45 -40 -35 -30 -25 -20 -15 -10 -5 0 v oh (v) i oh (ma) max: 125c + 3 1 typical: 25c min: -40c - 3 1 min. (-40c) typical (25c) max. (125c) 0 1 2 3 4 5 0 102030405060708090100 v ol (v) i ol (ma) max: 125c + 3 1 typical: 25c min: -40c - 3 1
? 2014 microchip technology inc. ds40001737a_cn 341 ? pic12(l)f1612/16(l)f1613 ? 29-3 ??? v oh i oh ? v dd = 3.0v ? 29-4 ??? v ol i ol ? v dd = 3.0v min. (-40c) typical (25c) max. (125c) 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 -15-13-11-9-7-5-3-1 v oh (v) i oh (ma) max: 125c + 3 1 typical: 25c min: -40c - 3 1 min. (-40c) typical (25c) max. (125c) 0.0 0.5 1.0 1.5 2.0 2.5 3.0 0 5 10 15 20 25 30 35 40 v ol (v) i ol (ma) max: 125c + 3 1 typical: 25c min: -40c - 3 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 342 ? ? 2014 microchip technology inc. ? 29-5 ??? v oh i oh ? v dd = 1.8v pic12lf1612/16lf1613 ? 29-6 ??? v ol i ol ? v dd = 1.8v pic12lf1612/16lf1613 min. (-40c) typical (25c) max. (125c) 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 -4.5 -4.0 -3.5 -3.0 -2.5 -2.0 -1.5 -1.0 -0.5 0.0 v oh (v) i oh (ma) max: 125c + 3 1 typical: 25c min: -40c - 3 1 min. (-40c) typical (25c) max. (125c) 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 012345678910 v ol (v) i ol (ma) max: 125c + 3 1 typical: 25c min: -40c - 3 1
? 2014 microchip technology inc. ds40001737a_cn 343 ? pic12(l)f1612/16(l)f1613 ? 29-7 por ??? ? 29-8 por ?? pic12f1612/16f1613 typical max. min. 1.50 1.52 1.54 1.56 1.58 1.60 1.62 1.64 1.66 1.68 1.70 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (v) temperature (c) max: typical + 3 1 typical: 25c min: typical - 3 1 typical max. min. 1.34 1.36 1.38 1.40 1.42 1.44 1.46 1.48 1.50 1.52 1.54 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (v) temperature (c) max: typical + 3 1 typical: 25c min: typical - 3 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 344 ? ? 2014 microchip technology inc. ? 29-9 ??? borv = 1 pic12lf1612/16lf1613 ? 29-10 ???? borv = 1 pic12lf1612/16lf1613 typical max. min. 1.80 1.85 1.90 1.95 2.00 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (v) temperature (c) max: typical + 3 1 min: typical - 3 1 typical max. min. 0 10 20 30 40 50 60 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (mv) temperature (c) max: typical + 3 1 typical: 25c min: typical - 3 1
? 2014 microchip technology inc. ds40001737a_cn 345 ? pic12(l)f1612/16(l)f1613 ? 29-11 ??? borv = 1 pic12f1612/16f1613 ? 29-12 ???? borv = 1 pic12f1612/16f1613 typical max. min. 2.30 2.35 2.40 2.45 2.50 2.55 2.60 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (v) temperature (c) max: typical + 3 1 min: typical - 3 1 typical max. min. 0 10 20 30 40 50 60 70 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (mv) temperature (c) max: typical + 3 1 typical: 25c min: typical - 3 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 346 ? ? 2014 microchip technology inc. ? 29-13 ??? borv = 0 ? 29-14 ???? borv = 0 typical max. min. 2.55 2.60 2.65 2.70 2.75 2.80 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (v) temperature (c) max: typical + 3 1 min: typical - 3 1 typical max. min. 0 10 20 30 40 50 60 70 80 90 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (mv) temperature (c) max: typical + 3 1 typical: 25c min: typical - 3 1
? 2014 microchip technology inc. ds40001737a_cn 347 ? pic12(l)f1612/16(l)f1613 ? 29-15 ???? lpbor = 0 ? 29-16 ????? lpbor = 0 typical max. min. 1.80 1.90 2.00 2.10 2.20 2.30 2.40 2.50 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (v) temperature (c) max: typical + 3 1 min: typical - 3 1 typical max. min. 0 5 10 15 20 25 30 35 40 45 -60 -40 -20 0 20 40 60 80 100 120 140 voltage (mv) temperature (c) max: typical + 3 1 typical: 25c min: typical - 3 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 348 ? ? 2014 microchip technology inc. ? 29-17 wdt ? ? 29-18 pwrt typical max. min. 10 12 14 16 18 20 22 24 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 time (ms) v dd (v) max: typical + 3 1 (-40c to +125c) typical: statistical mean @ 25c min: typical - 3 1 (-40c to +125c) typical max. min. 40 50 60 70 80 90 100 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 time (ms) v dd (v) max: typical + 3 1 (-40c to +125c) typical: statistical mean @ 25c min: typical - 3 1 (-40c to +125c)
? 2014 microchip technology inc. ds40001737a_cn 349 ? pic12(l)f1612/16(l)f1613 ? 29-19 fvr ? typical max. 0 10 20 30 40 50 60 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 time (us) v dd (v) max: typical + 3 1 typical: statistical mean @ 25c note: the fvr stabilization period applies when: 1) coming out of reset or exiting sleep mode for pic12/16lfxxxx devices. 2) when exiting sleep mode with vregpm = 1 for pic12/16fxxxx devices in all other cases, the fvr is stable when released from reset.
pic12(l)f1612/16(l)f1613 ds40001737a_cn 350 ? ? 2014 microchip technology inc. ? 29-20 ????? cxsp = 1 cxhys = 1 ? 29-21 ?????? cxsp = 0 cxhys = 1 min. typical max. 0 5 10 15 20 25 30 35 40 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 hysteresis (mv) v dd (v) max: typical + 3 1 typical: 25c min: typical - 3 1 min. typical max. 0 1 2 3 4 5 6 7 8 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 hysteresis (mv) v dd (v) max: typical + 3 1 typical: 25c min: typical - 3 1
? 2014 microchip technology inc. ds40001737a_cn 351 ? pic12(l)f1612/16(l)f1613 ? 29-22 ?????? cxsp = 1 ? 29-23 ?????????? cxsp = 1 max. typical 0 50 100 150 200 250 300 350 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 time (ns) v dd (v) max: typical + 3 1 typical: 25c min. (-40c) typical (25c) max. (125c) 0 50 100 150 200 250 300 350 400 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 time (ns) v dd (v) max: 125c + 3 1 typical: 25c min: -45c - 3 1
pic12(l)f1612/16(l)f1613 ds40001737a_cn 352 ? ? 2014 microchip technology inc. ? 29-24 25c ?????? cxsp = 1 pic12f1612/16f1613 max. typical min. -50 -40 -30 -20 -10 0 10 20 30 40 50 0.0 1.0 2.0 3.0 4.0 5.0 offset voltage (mv) common mode voltage (v) max: typical + 3 1 typical: 25c min: typical - 3 1
? 2014 microchip technology inc. ds40001737a_cn 353 ? pic12(l)f1612/16(l)f1613 ? 29-25 v dd ??? lfintosc ?? pic12lf1612/16lf1613 ? 29-26 v dd ??? lfintosc ?? pic12f1612/16f1613 typical max. min. 20 22 24 26 28 30 32 34 36 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 frequency (khz) v dd (v) max: typical + 3 1 (-40c to +125c) typical: statistical mean @ 25c min: typical - 3 1 (-40c to +125c) typical max. min. 20 22 24 26 28 30 32 34 36 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 frequency (khz) v dd (v) max: typical + 3 1 (-40c to +125c) typical: statistical mean @ 25c min: typical - 3 1 (-40c to +125c)
pic12(l)f1612/16(l)f1613 ds40001737a_cn 354 ? ? 2014 microchip technology inc. ? 29-27 ??? hfintosc ? v dd = 1.8v pic12lf1612/16lf1613 ? 29-28 ??? hfintosc ? 2.3v v dd 5.5v typical max. min. -10% -8% -6% -4% -2% 0% 2% 4% 6% 8% -60 -40 -20 0 20 40 60 80 100 120 140 accuracy (%) temperature (c) max: typical + 3 1 typical: statistical mean min: typical - 3 1 typical max. min. -10% -8% -6% -4% -2% 0% 2% 4% 6% 8% -60 -40 -20 0 20 40 60 80 100 120 140 accuracy (%) temperature (c) max: typical + 3 1 typical: statistical mean min: typical - 3 1
? 2014 microchip technology inc. ds40001737a_cn 355 ? pic12(l)f1612/16(l)f1613 ? 29-29 ?? hfintosc ? pic12lf1612/16lf1613 typical max. 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 time (us) v dd (v) max: 85c + 3 1 typical: 25c
pic12(l)f1612/16(l)f1613 ds40001737a_cn 356 ? ? 2014 microchip technology inc. ? 29-30 ??? hfintosc ? vregpm = 1 pic12f1612/16f1613 ? 29-31 ?? hfintosc ? vregpm = 0 pic12f1612/16f1613 typical max. 0 5 10 15 20 25 30 35 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 time (us) v dd (v) max: 85c + 3 1 typical: 25c typical max. 0 2 4 6 8 10 12 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 time (us) v dd (v) max: 85c + 3 1 typical: 25c
? 2014 microchip technology inc. ds40001737a_cn 357 ? pic12(l)f1612/16(l)f1613 30.0 ? ???? pic ? ? mcu dspic ? ?? dsc ??? ? ? - mplab ? x ide ? / / - mplab xc - mpasm? - mplink? ? / mplib? ? - ?? mplab / / ? ? - mplab x sim ? ? - mplab real ice? ? ? ? / - mplab icd 3 - pickit? 3 ? - mplab pm3 ? ??? / ]??? ? 30.1 mplab x ? mplab x ide microchip ?? ????? windows ? linux mac os ? x mplab x ide ?? ide netbeans ide ? ????????? ????????? ??????? ? mplab x ide ?????? ?????????? ???????? mplab x ide ???????? ??????? ???? ? ??? ? ??????? ? ????? ? ? ?????? ? ??????? ?? ? ? ???? ? ? ? ? ? ???? ???? ? ?? ? ? bugzilla ?????
pic12(l)f1612/16(l)f1613 ds40001737a_cn 358 ? ? 2014 microchip technology inc. 30.2 mplab xc mplab xc microchip 8 16 32 mcu ? dsc ? ansi c ????????? ? mplab xc windows linux mac os x ????? mplab x ide ??? mplab xc ???? ?????? ?? mplab xc ??? ??????? ??????r? r?????? mplab xc ????? ? ? ???? ? ??? ? ? ? ??? ? ? ? mplab x ide 30.3 mpasm mpasm ?? pic10/ 12/16/18 mcu mpasm mplink ?? ?? intel ? ? hex ?? ???? map ?? ?? lst ???? coff ? mpasm ? ? mplab x ide ? ? ????? ? ???? ? ???? 30.4 mplink ? / mplib ? mplink ? mpasm ?? ???????? ????? mplib ???? ???????? ?????? ???? ? / ? ? ??? ? ??????? ? ???I????? 30.5 ?? mplab ? mplab ? pic24 pic32 mcu ? dspic dsc ????? mplab xc ?????? ???????? ???????? ? ? ??? ? ??? ? ? ? ??? ? mplab x ide
? 2014 microchip technology inc. ds40001737a_cn 359 ? pic12(l)f1612/16(l)f1613 30.6 mplab x sim ? mplab x sim ???? pic mcu dspic dsc ?? pc ?? ???? ???????? ?????? ????? ???? i/o ????? ?? mplab x sim ???? mplab xc ? mpasm mplab ??? ?????? ????? 30.7 mplab real ice ??? mplab real ice ??? microchip dsc mcu ??? mplab x ide ????? ? 8 16 32 mcu dsc ??? ? usb 2.0 ??? pc ???? rj-11 ???? lvds cat5 ? ? mplab x ide ??? ? ?? mplab real ice ???????? ??? ??? ????? 3 ? ?? 30.8 mplab icd 3 ??? mplab icd 3 ??? microchip ? ??? / microchip dsc mcu mplab x ide ? ?????? pic ? dspic dsc ??? mplab icd 3 ?? usb 2.0 ? ?? pc mplab icd 2 mplab real ice ??? rj-11 ? mplab icd 3 ? mplab icd 2 30.9 pickit 3 ? / mplab x ide ??? mplab pickit 3 ? pic ? dspic ?? ?????? mplab pickit 3 ?? usb ??? pc microchip rj-11 mplab icd 3 mplab real ice ??? i/o ?????? in- circuit serial programming? icsp? pickit 3 debug express pickit 3 ??? ?o? ??????? mplab ide 30.10 mplab pm3 mplab pm3 ? ce Z? v ddmin v ddmax ??? ??????? ?? lcd ? 128 x 64 ???? ???????? ? icsp ???? mplab pm3 pc ? pic mcu dspic dsc ?????? ?? mplab pm3 ? rs-232 usb ? pc ? mplab pm3 ??? ??????? mmc ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 360 ? ? 2014 microchip technology inc. 30.11 ? / ]?? ? ?? pic mcu dspic dsc ???????? ?Z?? ???????? ???? led ?? ? rs-232 ?? lcd ??? eeprom ?????? ????? picdem? dspicdem? ? / ?? ? microchip ???? ??? k ee l oq ? ??? ic can irda ? powersmart ?? seeval ? ?? ? adc ??? ?????? ??????? ?? ??? microchip ? www.microchip.com 30.12 microchip ?????? ?????? ? softlog ccs ??? ? gimpel trace systems ??? ?saleae to ta l p h a s e ??? ? mikroelektronika digilent ? olimex ??? ? ? ez web lynx wiznet iplogika ? ??? ???
? 2014 microchip technology inc. ds40001737a_cn 361 ? pic12(l)f1612/16(l)f1613 31.0 ?? 31.1 ??? * ? pic ? ? microchip ?????? pic ? ???????? microchip ???? qtp ???? qtp ? ?? xx...x ??? y ? ?? yy ? ? ww ? ????? 01 nnn ??? matte tin sn jedec ? ?? * ???? jedec ?? ???? ?? ? microchip ?????? ????? 3 e 3 e 8 soic 3.90 mm ? nnn 8 pdip 300 mil ? xxxxxxxx xxxxxnnn yyww 12f1612 3 e i/p 1310 12f1612 i/sn1310 017 017
pic12(l)f1612/16(l)f1613 ds40001737a_cn 362 ? ? 2014 microchip technology inc. 31.1 ??? pic12(l)f1612 8 dfn 3x3x0.9 mm ? xxxx nnn yyww pin 1 pin 1 mgw0 1310 017 14 pdip xxxxxxxxxxxxxx xxxxxxxxxxxxxx yywwnnn ? 14 soic 0.150 ? xxxxxxxxxxx xxxxxxxxxxx yywwnnn ? PIC16F1613 -i/sl 1310017 14 tssop xxxxxxxx yyww nnn ? f1613ist 1310 017 PIC16F1613 -i/p 1310017 3 e 3 e 16 qfn 4x4x0.9 mm ? pin 1 pin 1 f1613 pic16 e/ml 310017 3 e
? 2014 microchip technology inc. ds40001737a_cn 363 ? pic12(l)f1612/16(l)f1613 31-1 8 3x3 dfn mf ? ? pic12f1612-e/mf mgu0 pic12lf1612-e/mf mgw0 pic12f1612-i/mf mgv0 pic12lf1612-i/mf mgx0 pic12f1612t-i/mf mgv0 pic12lf1612t-i/mf mgx0
pic12(l)f1612/16(l)f1613 ds40001737a_cn 364 ? ? 2014 microchip technology inc. 31.2 ??? 2??????? n e1 note 1 d 12 3 a a1 a2 l b1 b e e eb c 8 ????? p 300 mil [pdip] ? ?? http://www.microchip.com/packaging ? microchip ?Z
? 2014 microchip technology inc. ds40001737a_cn 365 ? pic12(l)f1612/16(l)f1613 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 8 ??? sn 3.90 mm [soic] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 366 ? ? 2014 microchip technology inc. note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 8 ??? sn 3.90 mm [soic] ? ?? http://www.microchip.com/packaging ? microchip ?Z
? 2014 microchip technology inc. ds40001737a_cn 367 ? pic12(l)f1612/16(l)f1613 8 ??? sn 3.90 mm [soic] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 368 ? ? 2014 microchip technology inc. note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 8 ?????? mf ?? 3x3x0.9 mm [dfn] ? ?? http://www.microchip.com/packaging ? microchip ?Z 2
? 2014 microchip technology inc. ds40001737a_cn 369 ? pic12(l)f1612/16(l)f1613 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 8 ?????? mf 3x3x0.9 mm [dfn] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 370 ? ? 2014 microchip technology inc. note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 8 ?????? mf 3x3x0.9 mm [dfn] ? ?? http://www.microchip.com/packaging ? microchip ?Z
? 2014 microchip technology inc. ds40001737a_cn 371 ? pic12(l)f1612/16(l)f1613 n e1 d note 1 12 3 e c eb a2 l a a1 b1 be 14 ????? p 300 mil [pdip] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 372 ? ? 2014 microchip technology inc. note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 14 ??? sl 3.90 mm [soic] ? ?? http://www.microchip.com/packaging ? microchip ?Z
? 2014 microchip technology inc. ds40001737a_cn 373 ? pic12(l)f1612/16(l)f1613 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 14 ??? sl 3.90 mm [soic] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 374 ? ? 2014 microchip technology inc. 14 ??? sl 3.90 mm [soic] ? ?? http://www.microchip.com/packaging ? microchip ?Z
? 2014 microchip technology inc. ds40001737a_cn 375 ? pic12(l)f1612/16(l)f1613 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 14 ??? st 4.4 mm [tssop] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 376 ? ? 2014 microchip technology inc. note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 14 ??? st 4.4 mm [tssop] ? ?? http://www.microchip.com/packaging ? microchip ?Z
? 2014 microchip technology inc. ds40001737a_cn 377 ? pic12(l)f1612/16(l)f1613 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 14 ??? st 4.4 mm [tssop] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 378 ? ? 2014 microchip technology inc. d e n 2 1 exposed pad d2 e2 2 1 e b k n note 1 a3 a1 a l top view bottom view 16 ????? ml 4x4x0.9 mm [qfn] ? ?? http://www.microchip.com/packaging ? microchip ?Z
? 2014 microchip technology inc. ds40001737a_cn 379 ? pic12(l)f1612/16(l)f1613 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging 16 ????? ml 4x4x0.9 mm [qfn] ? ?? http://www.microchip.com/packaging ? microchip ?Z
pic12(l)f1612/16(l)f1613 ds40001737a_cn 380 ? ? 2014 microchip technology inc. ? a ? a 2014 1 ?
? 2014 microchip technology inc. ds40001737a_cn 381 ? pic12(l)f1612/16(l)f1613 microchip ? microchip ? www.microchip.com ??? ?????????? ???????? ? ? ?? ???????? ??????? ??r ? ??? faq ? ? microchip ??? ? microchip ? ?????? microchip ?]????? microchip ?? ??? microchip ??????? microchip ?????? ??????? ????? ??? microchip ? www.microchip.com ??? support ??? customer change notification ?? ?? ?? microchip ???e ? ? ? ? ? ?? fae ? ? ?????? fae ? ???????? ??? ?? http://microchip.com/support ? ??
pic12(l)f1612/16(l)f1613 ds40001737a_cn 382 ? ? 2014 microchip technology inc. ??? ????????? x /xx xxx ? ? ?? pic12lf1612 pic12f1612 pic16lf1613 PIC16F1613 ??? ? = ?? ???? t= ? (1) ?? i = -40c +85c ? e = -40c +125c ? ? (2) mf = dfn 8 ? ml = qfn 16 ? p= ? dip sl = soic 14 ? sn = soic 8 ? st = tssop ?? qtp sqtp ? ?? ? a) pic12lf1612t - i/sn ? ??? soic ? b) PIC16F1613 - i/p ??? pdip ? c) PIC16F1613 - e/ml 298 ??? qfn ? qtp ?? #298 ? 1 ??????? ??????? ???????? ??? microchip ? 2 ?????? www.microchip.com/packaging ??? [x] (1) ?? -
? 2014 microchip technology inc. ds40001737a_cn 383 ? ??????? ????? microchip ??? ? microchip technology inc. ?? ????? ???? microchip technology inc. ??? ????? ???????Z ? microchip ?? ????? ????? ??? microchip ??? ??? microchip ?? / ?????? ???????? microchip ??? microchip ?? ?e??? ? microchip ???? microchip ?? dspic flashflex flexpwr jukeblox k ee l oq k ee l oq ?? kleer lancheck medialb most most ?? mplab optolyzer pic picstart pic 32 ?? righttouch spynic sst sst ?? superflash uni/o ? microchip technology inc. ? ??? the embedded control solutions company mtouch ? microchip technology inc . ??? analog-for-the-digital age bodycom chipkit chipkit ? codeguard dspicdem dspicdem.net ecan in-circuit serial programming icsp inter-chip connectivity kleernet kleernet ?? miwi mpasm mpf mplab certified ?? mplib mplink multitrak netdetach omniscient code generation picdem picdem.net pickit pictail righttouch ? real ice sqi serial quad i/o total endurance tsharc usbcheck varisense viewspan wiperlock wireless dna zena ? microchip technology inc. ??? sqtp ? microchip technology inc . ?? silicon storage technology ? microchip technology inc . ????? gestic ? microchip technology inc. ?? microchip technology germany ii gmbh & co. & kg ?? ??? ????? ? 2014, microchip technology inc. ? isbn 978-1-63276-601-4 ? microchip ???? ?microchip ??? microchip ???? ?microchip ???? microchip ??????????? ? ????????????? microchip ? Z? microchip ??????? ?microchip ?????? ?microchip ?j?????????? ?? ???? microchip ????????? microchip ??? ? ?? digital millennium copyright act ??? ?????????? microchip ? chandler tempe ?? gresham ?????? ???? iso/ts-16949:2009 ? microchip pic ? mcu dspic ? dsc k ee l oq ? eeprom ? ????????? ? microchip ??????? iso 9001:2000 ? quality management system certified by dnv == iso/ts 16949 ==
ds40001737a_cn 384 ? ? 2014 microchip technology inc. ?? corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 1-480-792-7200 fax: 1-480-792-7277 ?? http://www.microchip.com/ support ? www.microchip.com atlanta duluth, ga tel: 1-678-957-9614 fax: 1-678-957-1455 ?? austin, tx tel: 1-512-257-3370 ? boston westborough, ma tel: 1-774-760-0087 fax: 1-774-760-0088 ?? chicago itasca, il tel: 1-630-285-0071 fax: 1-630-285-0075 cleveland independence, oh tel: 1-216-447-0464 fax: 1-216-447-0643 ? dallas addison, tx tel: 1-972-818-7423 fax: 1-972-818-2924 detroit novi, mi tel: 1-248-848-4000 ? houston, tx tel: 1-281-894-5983 ???? indianapolis noblesville, in tel: 1-317-773-8323 fax: 1-317-773-5453 ? los angeles mission viejo, ca tel: 1-949-462-9523 fax: 1-949-462-9608 ?? new york, ny tel: 1-631-435-6000 ? san jose, ca tel: 1-408-735-9110 ?? toronto tel: 1-905-673-0699 fax: 1-905-673-6509 ? ?? asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2943-5100 fax: 852-2401-3431 - tel: 86-10-8569-7000 fax: 86-10-8528-2104 - ? tel: 86-28-8665-5511 fax: 86-28-8665-7889 - tel: 86-23-8980-9588 fax: 86-23-8980-9500 - tel: 86-571-8792-8115 fax: 86-571-8792-8116 - ? tel: 852-2943-5100 fax: 852-2401-3431 - ? tel: 86-25-8473-2460 fax: 86-25-8473-2470 - ? tel: 86-532-8502-7355 fax: 86-532-8502-7205 - ? tel: 86-21-5407-5533 fax: 86-21-5407-5066 - tel: 86-24-2334-2829 fax: 86-24-2334-2393 - tel: 86-755-8864-2200 fax: 86-755-8203-1760 - tel: 86-27-5980-5300 fax: 86-27-5980-5118 - tel: 86-29-8833-7252 fax: 86-29-8833-7256 - tel: 86-592-238-8138 fax: 86-592-238-8130 - tel: 86-756-321-0040 fax: 86-756-321-0049 ? ? - tel: 886-7-213-7830 ? - ? tel: 886-2-2508-8600 fax: 886-2-2508-0102 ? - tel: 886-3-5778-366 fax: 886-3-5770-955 ? australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 ? india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 ? india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 ? india - pune tel: 91-20-3019-1500 ? japan - osaka tel: 81-6-6152-7160 fax: 81-6-6152-9310 ? japan - tokyo tel: 81-3-6880-3770 fax: 81-3-6880-3771 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 ? philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 ? singapore tel: 65-6334-8870 fax: 65-6334-8850 ? thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 ? austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark-copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 1 germany - dusseldorf tel: 49-2129-3766400 1 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 1 germany - pforzheim tel: 49-7231-424750 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 italy - venice tel: 39-049-7625286 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 poland - warsaw tel: 48-22-3325737 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 sweden - stockholm tel: 46-8-5090-4654 ? uk - wokingham tel: 44-118-921-5800 fax: 44-118-921-5820 ?? 03/25/14


▲Up To Search▲   

 
Price & Availability of PIC16F1613

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X